{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:02.999121Z",
     "start_time": "2018-08-28T21:13:02.741710Z"
    }
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "from tqdm import tqdm\n",
    "from multiprocessing import Pool, cpu_count\n",
    "NTHREAD = cpu_count()\n",
    "\n",
    "import warnings\n",
    "warnings.filterwarnings(\"ignore\")\n",
    "\n",
    "from IPython.display import display\n",
    "pd.set_option('display.max_columns', 99)\n",
    "pd.set_option('display.max_rows', 50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:09.574751Z",
     "start_time": "2018-08-28T21:13:03.080530Z"
    }
   },
   "outputs": [],
   "source": [
    "train  = pd.read_csv('../input/application_train.csv.zip')\n",
    "train['is_train'] = 1\n",
    "\n",
    "test  = pd.read_csv('../input/application_test.csv.zip')\n",
    "test['is_train'] = 0\n",
    "\n",
    "trte = pd.concat([train, test], ignore_index=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:20.736305Z",
     "start_time": "2018-08-28T21:13:09.577158Z"
    }
   },
   "outputs": [],
   "source": [
    "prev = pd.read_csv('../input/previous_application.csv.zip')\n",
    "prev.sort_values('DAYS_DECISION', inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:20.841338Z",
     "start_time": "2018-08-28T21:13:20.738951Z"
    }
   },
   "outputs": [],
   "source": [
    "user_id = pd.read_csv('../data/user_id_v8.csv.gz')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.279857Z",
     "start_time": "2018-08-28T21:13:20.843121Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>user_id</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>TARGET</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>CODE_GENDER</th>\n",
       "      <th>FLAG_OWN_CAR</th>\n",
       "      <th>FLAG_OWN_REALTY</th>\n",
       "      <th>CNT_CHILDREN</th>\n",
       "      <th>AMT_INCOME_TOTAL</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_INCOME_TYPE</th>\n",
       "      <th>NAME_EDUCATION_TYPE</th>\n",
       "      <th>NAME_FAMILY_STATUS</th>\n",
       "      <th>NAME_HOUSING_TYPE</th>\n",
       "      <th>REGION_POPULATION_RELATIVE</th>\n",
       "      <th>DAYS_BIRTH</th>\n",
       "      <th>DAYS_EMPLOYED</th>\n",
       "      <th>DAYS_REGISTRATION</th>\n",
       "      <th>DAYS_ID_PUBLISH</th>\n",
       "      <th>OWN_CAR_AGE</th>\n",
       "      <th>FLAG_MOBIL</th>\n",
       "      <th>FLAG_EMP_PHONE</th>\n",
       "      <th>FLAG_WORK_PHONE</th>\n",
       "      <th>FLAG_CONT_MOBILE</th>\n",
       "      <th>FLAG_PHONE</th>\n",
       "      <th>FLAG_EMAIL</th>\n",
       "      <th>OCCUPATION_TYPE</th>\n",
       "      <th>CNT_FAM_MEMBERS</th>\n",
       "      <th>REGION_RATING_CLIENT</th>\n",
       "      <th>REGION_RATING_CLIENT_W_CITY</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>REG_REGION_NOT_LIVE_REGION</th>\n",
       "      <th>REG_REGION_NOT_WORK_REGION</th>\n",
       "      <th>LIVE_REGION_NOT_WORK_REGION</th>\n",
       "      <th>REG_CITY_NOT_LIVE_CITY</th>\n",
       "      <th>REG_CITY_NOT_WORK_CITY</th>\n",
       "      <th>LIVE_CITY_NOT_WORK_CITY</th>\n",
       "      <th>ORGANIZATION_TYPE</th>\n",
       "      <th>EXT_SOURCE_1</th>\n",
       "      <th>EXT_SOURCE_2</th>\n",
       "      <th>EXT_SOURCE_3</th>\n",
       "      <th>APARTMENTS_AVG</th>\n",
       "      <th>BASEMENTAREA_AVG</th>\n",
       "      <th>YEARS_BEGINEXPLUATATION_AVG</th>\n",
       "      <th>YEARS_BUILD_AVG</th>\n",
       "      <th>...</th>\n",
       "      <th>YEARS_BUILD_MEDI</th>\n",
       "      <th>COMMONAREA_MEDI</th>\n",
       "      <th>ELEVATORS_MEDI</th>\n",
       "      <th>ENTRANCES_MEDI</th>\n",
       "      <th>FLOORSMAX_MEDI</th>\n",
       "      <th>FLOORSMIN_MEDI</th>\n",
       "      <th>LANDAREA_MEDI</th>\n",
       "      <th>LIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>LIVINGAREA_MEDI</th>\n",
       "      <th>NONLIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>NONLIVINGAREA_MEDI</th>\n",
       "      <th>FONDKAPREMONT_MODE</th>\n",
       "      <th>HOUSETYPE_MODE</th>\n",
       "      <th>TOTALAREA_MODE</th>\n",
       "      <th>WALLSMATERIAL_MODE</th>\n",
       "      <th>EMERGENCYSTATE_MODE</th>\n",
       "      <th>OBS_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>OBS_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DAYS_LAST_PHONE_CHANGE</th>\n",
       "      <th>FLAG_DOCUMENT_2</th>\n",
       "      <th>FLAG_DOCUMENT_3</th>\n",
       "      <th>FLAG_DOCUMENT_4</th>\n",
       "      <th>FLAG_DOCUMENT_5</th>\n",
       "      <th>FLAG_DOCUMENT_6</th>\n",
       "      <th>FLAG_DOCUMENT_7</th>\n",
       "      <th>FLAG_DOCUMENT_8</th>\n",
       "      <th>FLAG_DOCUMENT_9</th>\n",
       "      <th>FLAG_DOCUMENT_10</th>\n",
       "      <th>FLAG_DOCUMENT_11</th>\n",
       "      <th>FLAG_DOCUMENT_12</th>\n",
       "      <th>FLAG_DOCUMENT_13</th>\n",
       "      <th>FLAG_DOCUMENT_14</th>\n",
       "      <th>FLAG_DOCUMENT_15</th>\n",
       "      <th>FLAG_DOCUMENT_16</th>\n",
       "      <th>FLAG_DOCUMENT_17</th>\n",
       "      <th>FLAG_DOCUMENT_18</th>\n",
       "      <th>FLAG_DOCUMENT_19</th>\n",
       "      <th>FLAG_DOCUMENT_20</th>\n",
       "      <th>FLAG_DOCUMENT_21</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_HOUR</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_DAY</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_WEEK</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_MON</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_QRT</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_YEAR</th>\n",
       "      <th>is_train</th>\n",
       "      <th>seq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>18.0</td>\n",
       "      <td>100279</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>254700.0</td>\n",
       "      <td>16407.0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.072508</td>\n",
       "      <td>-23946</td>\n",
       "      <td>365243</td>\n",
       "      <td>-6935.0</td>\n",
       "      <td>-3948</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.458685</td>\n",
       "      <td>0.528093</td>\n",
       "      <td>0.3041</td>\n",
       "      <td>0.1854</td>\n",
       "      <td>0.9791</td>\n",
       "      <td>0.7144</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7182</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.32</td>\n",
       "      <td>0.2759</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.0417</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.2454</td>\n",
       "      <td>0.2861</td>\n",
       "      <td>0.0311</td>\n",
       "      <td>0.0092</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.2230</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-975.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>18.0</td>\n",
       "      <td>100124</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>448272.0</td>\n",
       "      <td>28647.0</td>\n",
       "      <td>396000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.072508</td>\n",
       "      <td>-24051</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7040.0</td>\n",
       "      <td>-4053</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.710318</td>\n",
       "      <td>0.554947</td>\n",
       "      <td>0.2959</td>\n",
       "      <td>0.1785</td>\n",
       "      <td>0.9786</td>\n",
       "      <td>0.7076</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7115</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.32</td>\n",
       "      <td>0.2759</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.3750</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.2454</td>\n",
       "      <td>0.2741</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0062</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.2131</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1080.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>8.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>38.0</td>\n",
       "      <td>100955</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>101880.0</td>\n",
       "      <td>10053.0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Lower secondary</td>\n",
       "      <td>Single / not married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22321</td>\n",
       "      <td>365243</td>\n",
       "      <td>-13611.0</td>\n",
       "      <td>-2523</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.664900</td>\n",
       "      <td>0.504681</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-1012.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>38.0</td>\n",
       "      <td>190916</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>24565.5</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Lower secondary</td>\n",
       "      <td>Single / not married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22609</td>\n",
       "      <td>365243</td>\n",
       "      <td>-73.0</td>\n",
       "      <td>-2811</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.279026</td>\n",
       "      <td>0.504692</td>\n",
       "      <td>0.466864</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1300.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>40.0</td>\n",
       "      <td>178701</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>13500.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-16416</td>\n",
       "      <td>-1223</td>\n",
       "      <td>-2542.0</td>\n",
       "      <td>-4382</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Business Entity Type 3</td>\n",
       "      <td>0.479804</td>\n",
       "      <td>0.514119</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1642.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>40.0</td>\n",
       "      <td>101020</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>332946.0</td>\n",
       "      <td>16146.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-16649</td>\n",
       "      <td>-1456</td>\n",
       "      <td>-2775.0</td>\n",
       "      <td>-192</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Business Entity Type 3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.575513</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1875.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>53.0</td>\n",
       "      <td>247772</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>143100.0</td>\n",
       "      <td>729792.0</td>\n",
       "      <td>37260.0</td>\n",
       "      <td>630000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010966</td>\n",
       "      <td>-21491</td>\n",
       "      <td>365243</td>\n",
       "      <td>-332.0</td>\n",
       "      <td>-86</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.303433</td>\n",
       "      <td>0.634706</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1235.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>53.0</td>\n",
       "      <td>101243</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>314055.0</td>\n",
       "      <td>13329.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010966</td>\n",
       "      <td>-21590</td>\n",
       "      <td>365243</td>\n",
       "      <td>-401.0</td>\n",
       "      <td>-185</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.172657</td>\n",
       "      <td>0.659406</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-1334.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>56.0</td>\n",
       "      <td>101475</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>95940.0</td>\n",
       "      <td>9472.5</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-21991</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7720.0</td>\n",
       "      <td>-4780</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.569745</td>\n",
       "      <td>0.602386</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1833.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>56.0</td>\n",
       "      <td>130172</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>145557.0</td>\n",
       "      <td>7132.5</td>\n",
       "      <td>121500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-22154</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7913.0</td>\n",
       "      <td>-4943</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.609567</td>\n",
       "      <td>0.350696</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1996.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>69.0</td>\n",
       "      <td>101790</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>582228.0</td>\n",
       "      <td>17154.0</td>\n",
       "      <td>486000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.005313</td>\n",
       "      <td>-17479</td>\n",
       "      <td>365243</td>\n",
       "      <td>-10234.0</td>\n",
       "      <td>-1015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.656749</td>\n",
       "      <td>0.554947</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-419.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>69.0</td>\n",
       "      <td>340385</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>292500.0</td>\n",
       "      <td>231097.5</td>\n",
       "      <td>18387.0</td>\n",
       "      <td>175500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.006207</td>\n",
       "      <td>-22056</td>\n",
       "      <td>365243</td>\n",
       "      <td>-4512.0</td>\n",
       "      <td>-5312</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.554697</td>\n",
       "      <td>0.239226</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1252.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>125.0</td>\n",
       "      <td>103690</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>68760.0</td>\n",
       "      <td>2596.5</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.009657</td>\n",
       "      <td>-22517</td>\n",
       "      <td>365243</td>\n",
       "      <td>-3714.0</td>\n",
       "      <td>-4665</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.620249</td>\n",
       "      <td>0.829750</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-703.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>125.0</td>\n",
       "      <td>241943</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>172021.5</td>\n",
       "      <td>12991.5</td>\n",
       "      <td>148500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-23237</td>\n",
       "      <td>365243</td>\n",
       "      <td>-206.0</td>\n",
       "      <td>-4609</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.759941</td>\n",
       "      <td>0.711311</td>\n",
       "      <td>0.761026</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1990.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>125.0</td>\n",
       "      <td>442631</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>94500.0</td>\n",
       "      <td>312768.0</td>\n",
       "      <td>13905.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.019101</td>\n",
       "      <td>-23571</td>\n",
       "      <td>365243</td>\n",
       "      <td>-15940.0</td>\n",
       "      <td>-4130</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.714069</td>\n",
       "      <td>0.429424</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1513.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>168.0</td>\n",
       "      <td>101044</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>1097676.0</td>\n",
       "      <td>32224.5</td>\n",
       "      <td>958500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.025164</td>\n",
       "      <td>-15085</td>\n",
       "      <td>-8508</td>\n",
       "      <td>-739.0</td>\n",
       "      <td>-2020</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Laborers</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>8</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Industry: type 5</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.265256</td>\n",
       "      <td>0.735221</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>168.0</td>\n",
       "      <td>103341</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>339241.5</td>\n",
       "      <td>12312.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.025164</td>\n",
       "      <td>-15172</td>\n",
       "      <td>-8595</td>\n",
       "      <td>-826.0</td>\n",
       "      <td>-2107</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Laborers</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Industry: type 5</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.263144</td>\n",
       "      <td>0.713631</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-87.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>186.0</td>\n",
       "      <td>175892</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>597024.0</td>\n",
       "      <td>33466.5</td>\n",
       "      <td>540000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-21545</td>\n",
       "      <td>365243</td>\n",
       "      <td>-10349.0</td>\n",
       "      <td>-4705</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.756023</td>\n",
       "      <td>0.451965</td>\n",
       "      <td>0.622922</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-683.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>186.0</td>\n",
       "      <td>105376</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>162000.0</td>\n",
       "      <td>607500.0</td>\n",
       "      <td>26887.5</td>\n",
       "      <td>607500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.014520</td>\n",
       "      <td>-22299</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2233.0</td>\n",
       "      <td>-2303</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.547789</td>\n",
       "      <td>0.372422</td>\n",
       "      <td>0.709189</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1233.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>201.0</td>\n",
       "      <td>346825</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>805072.5</td>\n",
       "      <td>29047.5</td>\n",
       "      <td>679500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-20990</td>\n",
       "      <td>365243</td>\n",
       "      <td>-6020.0</td>\n",
       "      <td>-4450</td>\n",
       "      <td>25.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.283881</td>\n",
       "      <td>0.606143</td>\n",
       "      <td>0.477649</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1727.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>201.0</td>\n",
       "      <td>420192</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>166500.0</td>\n",
       "      <td>339228.0</td>\n",
       "      <td>17451.0</td>\n",
       "      <td>243000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.008019</td>\n",
       "      <td>-21889</td>\n",
       "      <td>365243</td>\n",
       "      <td>-3102.0</td>\n",
       "      <td>-4216</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.501434</td>\n",
       "      <td>0.411849</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>201.0</td>\n",
       "      <td>105965</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>314055.0</td>\n",
       "      <td>13329.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-23571</td>\n",
       "      <td>365243</td>\n",
       "      <td>-4623.0</td>\n",
       "      <td>-4628</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.676461</td>\n",
       "      <td>0.689479</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2559.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>240.0</td>\n",
       "      <td>107153</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>198000.0</td>\n",
       "      <td>9630.0</td>\n",
       "      <td>198000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-16388</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2583.0</td>\n",
       "      <td>-4330</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.467139</td>\n",
       "      <td>0.447179</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2459.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>240.0</td>\n",
       "      <td>419583</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>114750.0</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>26446.5</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.018850</td>\n",
       "      <td>-18615</td>\n",
       "      <td>365243</td>\n",
       "      <td>-6584.0</td>\n",
       "      <td>-2164</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.418705</td>\n",
       "      <td>0.581484</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-435.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>246.0</td>\n",
       "      <td>206946</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>3</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>315000.0</td>\n",
       "      <td>15750.0</td>\n",
       "      <td>315000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Incomplete higher</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010966</td>\n",
       "      <td>-13738</td>\n",
       "      <td>-5827</td>\n",
       "      <td>-5919.0</td>\n",
       "      <td>-4491</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Cooking staff</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Kindergarten</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.129925</td>\n",
       "      <td>0.328063</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-44.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17469</th>\n",
       "      <td>19477.0</td>\n",
       "      <td>440336</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>252000.0</td>\n",
       "      <td>838453.5</td>\n",
       "      <td>42939.0</td>\n",
       "      <td>688500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010032</td>\n",
       "      <td>-18793</td>\n",
       "      <td>-11358</td>\n",
       "      <td>-3482.0</td>\n",
       "      <td>-2326</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Business Entity Type 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.686566</td>\n",
       "      <td>0.586740</td>\n",
       "      <td>0.0825</td>\n",
       "      <td>0.0802</td>\n",
       "      <td>0.9752</td>\n",
       "      <td>0.6600</td>\n",
       "      <td>...</td>\n",
       "      <td>0.6645</td>\n",
       "      <td>0.0277</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.1379</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0745</td>\n",
       "      <td>0.0684</td>\n",
       "      <td>0.0652</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0648</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>-137.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17470</th>\n",
       "      <td>19478.0</td>\n",
       "      <td>456062</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>1056447.0</td>\n",
       "      <td>31018.5</td>\n",
       "      <td>922500.0</td>\n",
       "      <td>Children</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.004960</td>\n",
       "      <td>-22122</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7997.0</td>\n",
       "      <td>-4703</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.793389</td>\n",
       "      <td>0.747837</td>\n",
       "      <td>0.746300</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-747.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17471</th>\n",
       "      <td>19478.0</td>\n",
       "      <td>236302</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>474444.0</td>\n",
       "      <td>18013.5</td>\n",
       "      <td>310500.0</td>\n",
       "      <td>Children</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.004960</td>\n",
       "      <td>-22332</td>\n",
       "      <td>365243</td>\n",
       "      <td>-8207.0</td>\n",
       "      <td>-4913</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.627384</td>\n",
       "      <td>0.658738</td>\n",
       "      <td>0.754406</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17472</th>\n",
       "      <td>19479.0</td>\n",
       "      <td>161667</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>1006920.0</td>\n",
       "      <td>39933.0</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.006629</td>\n",
       "      <td>-18776</td>\n",
       "      <td>365243</td>\n",
       "      <td>-1886.0</td>\n",
       "      <td>-2313</td>\n",
       "      <td>11.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>5</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.685153</td>\n",
       "      <td>0.431192</td>\n",
       "      <td>0.0454</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.9901</td>\n",
       "      <td>0.9864</td>\n",
       "      <td>...</td>\n",
       "      <td>0.9866</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.2917</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.0099</td>\n",
       "      <td>0.0355</td>\n",
       "      <td>0.0457</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0624</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0521</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1536.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17473</th>\n",
       "      <td>19479.0</td>\n",
       "      <td>456070</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>840996.0</td>\n",
       "      <td>24718.5</td>\n",
       "      <td>702000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.006629</td>\n",
       "      <td>-18800</td>\n",
       "      <td>-4699</td>\n",
       "      <td>-1910.0</td>\n",
       "      <td>-2337</td>\n",
       "      <td>11.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Managers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.350089</td>\n",
       "      <td>0.265049</td>\n",
       "      <td>0.0454</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.9901</td>\n",
       "      <td>0.9864</td>\n",
       "      <td>...</td>\n",
       "      <td>0.9866</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.2917</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.0099</td>\n",
       "      <td>0.0355</td>\n",
       "      <td>0.0457</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0624</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0521</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1560.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17474</th>\n",
       "      <td>19480.0</td>\n",
       "      <td>456077</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>143910.0</td>\n",
       "      <td>14364.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22355</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2200.0</td>\n",
       "      <td>-3765</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.702671</td>\n",
       "      <td>0.111986</td>\n",
       "      <td>0.641368</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-734.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17475</th>\n",
       "      <td>19480.0</td>\n",
       "      <td>248526</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>11902.5</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22585</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2430.0</td>\n",
       "      <td>-3995</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.667471</td>\n",
       "      <td>0.004513</td>\n",
       "      <td>0.574447</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-964.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17476</th>\n",
       "      <td>19481.0</td>\n",
       "      <td>296995</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>63000.0</td>\n",
       "      <td>152820.0</td>\n",
       "      <td>14418.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-16557</td>\n",
       "      <td>-1277</td>\n",
       "      <td>-810.0</td>\n",
       "      <td>-99</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.853731</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-426.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17477</th>\n",
       "      <td>19481.0</td>\n",
       "      <td>456100</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>63000.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>6750.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-16557</td>\n",
       "      <td>-1277</td>\n",
       "      <td>-810.0</td>\n",
       "      <td>-99</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.472924</td>\n",
       "      <td>0.853731</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-426.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17478</th>\n",
       "      <td>19482.0</td>\n",
       "      <td>227746</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>314100.0</td>\n",
       "      <td>16573.5</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-20042</td>\n",
       "      <td>-2455</td>\n",
       "      <td>-8616.0</td>\n",
       "      <td>-3443</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Drivers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Business Entity Type 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.695752</td>\n",
       "      <td>0.758393</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.0555</td>\n",
       "      <td>0.9841</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0342</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0461</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0589</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1740.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17479</th>\n",
       "      <td>19482.0</td>\n",
       "      <td>456109</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>13500.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-20224</td>\n",
       "      <td>-2637</td>\n",
       "      <td>-8798.0</td>\n",
       "      <td>-3625</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Drivers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Business Entity Type 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.674328</td>\n",
       "      <td>0.719491</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.0555</td>\n",
       "      <td>0.9836</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0342</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0461</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0589</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1922.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17480</th>\n",
       "      <td>19483.0</td>\n",
       "      <td>155343</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>1</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>14472.0</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Separated</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.018209</td>\n",
       "      <td>-20575</td>\n",
       "      <td>365243</td>\n",
       "      <td>-11983.0</td>\n",
       "      <td>-4114</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.335201</td>\n",
       "      <td>0.581484</td>\n",
       "      <td>0.0835</td>\n",
       "      <td>0.0295</td>\n",
       "      <td>0.9831</td>\n",
       "      <td>0.7688</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7719</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0326</td>\n",
       "      <td>0.0676</td>\n",
       "      <td>0.0291</td>\n",
       "      <td>0.0078</td>\n",
       "      <td>0.0167</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0260</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1553.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17481</th>\n",
       "      <td>19483.0</td>\n",
       "      <td>456150</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>16645.5</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Separated</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.018209</td>\n",
       "      <td>-20768</td>\n",
       "      <td>365243</td>\n",
       "      <td>-12176.0</td>\n",
       "      <td>-4307</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.319830</td>\n",
       "      <td>0.617826</td>\n",
       "      <td>0.0835</td>\n",
       "      <td>0.0295</td>\n",
       "      <td>0.9826</td>\n",
       "      <td>0.7620</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7652</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0326</td>\n",
       "      <td>0.0676</td>\n",
       "      <td>0.0291</td>\n",
       "      <td>0.0078</td>\n",
       "      <td>0.0167</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0260</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1746.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17482</th>\n",
       "      <td>19484.0</td>\n",
       "      <td>228120</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>271066.5</td>\n",
       "      <td>20394.0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-15358</td>\n",
       "      <td>-4314</td>\n",
       "      <td>-1724.0</td>\n",
       "      <td>-2967</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>0.757658</td>\n",
       "      <td>0.680811</td>\n",
       "      <td>0.636376</td>\n",
       "      <td>0.0381</td>\n",
       "      <td>0.0385</td>\n",
       "      <td>0.9697</td>\n",
       "      <td>0.5852</td>\n",
       "      <td>...</td>\n",
       "      <td>0.5907</td>\n",
       "      <td>0.0255</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.1034</td>\n",
       "      <td>0.1250</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2542</td>\n",
       "      <td>0.0274</td>\n",
       "      <td>0.0204</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0474</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0397</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2416.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17483</th>\n",
       "      <td>19484.0</td>\n",
       "      <td>456151</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>369720.0</td>\n",
       "      <td>22747.5</td>\n",
       "      <td>292500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-15450</td>\n",
       "      <td>-4406</td>\n",
       "      <td>-1816.0</td>\n",
       "      <td>-3059</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>0.682714</td>\n",
       "      <td>0.499351</td>\n",
       "      <td>0.591977</td>\n",
       "      <td>0.0381</td>\n",
       "      <td>0.0385</td>\n",
       "      <td>0.9697</td>\n",
       "      <td>0.5852</td>\n",
       "      <td>...</td>\n",
       "      <td>0.5907</td>\n",
       "      <td>0.0255</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.1034</td>\n",
       "      <td>0.1250</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2542</td>\n",
       "      <td>0.0274</td>\n",
       "      <td>0.0204</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0474</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0397</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2508.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>8.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17484</th>\n",
       "      <td>19485.0</td>\n",
       "      <td>141661</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>688090.5</td>\n",
       "      <td>22491.0</td>\n",
       "      <td>594000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-21633</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2445.0</td>\n",
       "      <td>-4909</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.839565</td>\n",
       "      <td>0.354225</td>\n",
       "      <td>0.358951</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2440.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17485</th>\n",
       "      <td>19485.0</td>\n",
       "      <td>456163</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>170640.0</td>\n",
       "      <td>11034.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-21755</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2567.0</td>\n",
       "      <td>-5031</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.890056</td>\n",
       "      <td>0.355126</td>\n",
       "      <td>0.363945</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2562.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17486</th>\n",
       "      <td>19486.0</td>\n",
       "      <td>294710</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>862560.0</td>\n",
       "      <td>25218.0</td>\n",
       "      <td>720000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.024610</td>\n",
       "      <td>-22712</td>\n",
       "      <td>365243</td>\n",
       "      <td>-11805.0</td>\n",
       "      <td>-3705</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.506212</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.1938</td>\n",
       "      <td>0.1218</td>\n",
       "      <td>0.9916</td>\n",
       "      <td>0.8844</td>\n",
       "      <td>...</td>\n",
       "      <td>0.8859</td>\n",
       "      <td>0.0501</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.1379</td>\n",
       "      <td>0.5000</td>\n",
       "      <td>0.5417</td>\n",
       "      <td>0.1319</td>\n",
       "      <td>0.1608</td>\n",
       "      <td>0.2060</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.0231</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.1849</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1424.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17487</th>\n",
       "      <td>19486.0</td>\n",
       "      <td>456169</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>85500.0</td>\n",
       "      <td>109008.0</td>\n",
       "      <td>7411.5</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.024610</td>\n",
       "      <td>-22995</td>\n",
       "      <td>365243</td>\n",
       "      <td>-12088.0</td>\n",
       "      <td>-3988</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.465881</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.1938</td>\n",
       "      <td>0.1218</td>\n",
       "      <td>0.9911</td>\n",
       "      <td>0.8776</td>\n",
       "      <td>...</td>\n",
       "      <td>0.8792</td>\n",
       "      <td>0.0501</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.1379</td>\n",
       "      <td>0.5000</td>\n",
       "      <td>0.5417</td>\n",
       "      <td>0.1319</td>\n",
       "      <td>0.1608</td>\n",
       "      <td>0.2060</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.0231</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.1849</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1707.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17488</th>\n",
       "      <td>19488.0</td>\n",
       "      <td>456208</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>305955.0</td>\n",
       "      <td>21888.0</td>\n",
       "      <td>283500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-9844</td>\n",
       "      <td>-1266</td>\n",
       "      <td>-7511.0</td>\n",
       "      <td>-1053</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Industry: type 12</td>\n",
       "      <td>0.510609</td>\n",
       "      <td>0.240384</td>\n",
       "      <td>0.511892</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.1276</td>\n",
       "      <td>0.9826</td>\n",
       "      <td>0.7620</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7652</td>\n",
       "      <td>0.0116</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.3750</td>\n",
       "      <td>0.0761</td>\n",
       "      <td>0.0616</td>\n",
       "      <td>0.0789</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0673</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-499.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17489</th>\n",
       "      <td>19488.0</td>\n",
       "      <td>244238</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>6750.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-10016</td>\n",
       "      <td>-888</td>\n",
       "      <td>-7683.0</td>\n",
       "      <td>-1225</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>Core staff</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Trade: type 6</td>\n",
       "      <td>0.511806</td>\n",
       "      <td>0.241820</td>\n",
       "      <td>0.185202</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.1276</td>\n",
       "      <td>0.9821</td>\n",
       "      <td>0.7552</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7585</td>\n",
       "      <td>0.0116</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.3750</td>\n",
       "      <td>0.0761</td>\n",
       "      <td>0.0616</td>\n",
       "      <td>0.0789</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0673</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-671.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17490</th>\n",
       "      <td>19489.0</td>\n",
       "      <td>449596</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>1</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>27324.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-14502</td>\n",
       "      <td>-2058</td>\n",
       "      <td>-2250.0</td>\n",
       "      <td>-6124</td>\n",
       "      <td>18.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>High skill tech staff</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Transport: type 3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.423305</td>\n",
       "      <td>0.581484</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-550.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17491</th>\n",
       "      <td>19489.0</td>\n",
       "      <td>456213</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>258709.5</td>\n",
       "      <td>20439.0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>Spouse, partner</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-14589</td>\n",
       "      <td>-2145</td>\n",
       "      <td>-2337.0</td>\n",
       "      <td>-6211</td>\n",
       "      <td>18.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>High skill tech staff</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>0.585450</td>\n",
       "      <td>0.264486</td>\n",
       "      <td>0.565608</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-637.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17492</th>\n",
       "      <td>19490.0</td>\n",
       "      <td>456226</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>500566.5</td>\n",
       "      <td>34969.5</td>\n",
       "      <td>472500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-14106</td>\n",
       "      <td>-226</td>\n",
       "      <td>-2463.0</td>\n",
       "      <td>-933</td>\n",
       "      <td>11.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Managers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Telecom</td>\n",
       "      <td>0.470808</td>\n",
       "      <td>0.737905</td>\n",
       "      <td>0.394495</td>\n",
       "      <td>0.0392</td>\n",
       "      <td>0.0402</td>\n",
       "      <td>0.9737</td>\n",
       "      <td>0.6396</td>\n",
       "      <td>...</td>\n",
       "      <td>0.6444</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0182</td>\n",
       "      <td>0.0316</td>\n",
       "      <td>0.0312</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0051</td>\n",
       "      <td>not specified</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0272</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-611.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17493</th>\n",
       "      <td>19490.0</td>\n",
       "      <td>208832</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>407520.0</td>\n",
       "      <td>32197.5</td>\n",
       "      <td>360000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-14248</td>\n",
       "      <td>-277</td>\n",
       "      <td>-2605.0</td>\n",
       "      <td>-1075</td>\n",
       "      <td>12.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Managers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Telecom</td>\n",
       "      <td>0.458642</td>\n",
       "      <td>0.767190</td>\n",
       "      <td>0.365617</td>\n",
       "      <td>0.0392</td>\n",
       "      <td>0.0402</td>\n",
       "      <td>0.9732</td>\n",
       "      <td>0.6328</td>\n",
       "      <td>...</td>\n",
       "      <td>0.6377</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0182</td>\n",
       "      <td>0.0316</td>\n",
       "      <td>0.0312</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0051</td>\n",
       "      <td>not specified</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0272</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-753.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>17494 rows × 125 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       user_id  SK_ID_CURR  TARGET NAME_CONTRACT_TYPE CODE_GENDER  \\\n",
       "0         18.0      100279     0.0         Cash loans           M   \n",
       "1         18.0      100124     0.0         Cash loans           M   \n",
       "2         38.0      100955     0.0         Cash loans           F   \n",
       "3         38.0      190916     NaN         Cash loans           F   \n",
       "4         40.0      178701     0.0    Revolving loans           F   \n",
       "5         40.0      101020     NaN         Cash loans           F   \n",
       "6         53.0      247772     0.0         Cash loans           F   \n",
       "7         53.0      101243     NaN         Cash loans           F   \n",
       "8         56.0      101475     0.0         Cash loans           F   \n",
       "9         56.0      130172     0.0         Cash loans           F   \n",
       "10        69.0      101790     0.0         Cash loans           F   \n",
       "11        69.0      340385     NaN         Cash loans           F   \n",
       "12       125.0      103690     0.0         Cash loans           F   \n",
       "13       125.0      241943     NaN         Cash loans           F   \n",
       "14       125.0      442631     0.0         Cash loans           F   \n",
       "15       168.0      101044     0.0         Cash loans           F   \n",
       "16       168.0      103341     0.0         Cash loans           F   \n",
       "17       186.0      175892     NaN         Cash loans           F   \n",
       "18       186.0      105376     0.0         Cash loans           F   \n",
       "19       201.0      346825     0.0         Cash loans           F   \n",
       "20       201.0      420192     0.0         Cash loans           F   \n",
       "21       201.0      105965     NaN         Cash loans           F   \n",
       "22       240.0      107153     0.0         Cash loans           M   \n",
       "23       240.0      419583     0.0         Cash loans           M   \n",
       "24       246.0      206946     0.0    Revolving loans           F   \n",
       "...        ...         ...     ...                ...         ...   \n",
       "17469  19477.0      440336     NaN         Cash loans           F   \n",
       "17470  19478.0      456062     0.0         Cash loans           F   \n",
       "17471  19478.0      236302     NaN         Cash loans           F   \n",
       "17472  19479.0      161667     0.0         Cash loans           F   \n",
       "17473  19479.0      456070     0.0         Cash loans           F   \n",
       "17474  19480.0      456077     0.0         Cash loans           F   \n",
       "17475  19480.0      248526     NaN         Cash loans           F   \n",
       "17476  19481.0      296995     0.0         Cash loans           F   \n",
       "17477  19481.0      456100     0.0    Revolving loans           F   \n",
       "17478  19482.0      227746     0.0         Cash loans           M   \n",
       "17479  19482.0      456109     0.0    Revolving loans           M   \n",
       "17480  19483.0      155343     0.0         Cash loans           F   \n",
       "17481  19483.0      456150     0.0         Cash loans           F   \n",
       "17482  19484.0      228120     0.0         Cash loans           F   \n",
       "17483  19484.0      456151     0.0         Cash loans           F   \n",
       "17484  19485.0      141661     0.0         Cash loans           F   \n",
       "17485  19485.0      456163     0.0         Cash loans           F   \n",
       "17486  19486.0      294710     0.0         Cash loans           F   \n",
       "17487  19486.0      456169     NaN         Cash loans           F   \n",
       "17488  19488.0      456208     0.0         Cash loans           F   \n",
       "17489  19488.0      244238     NaN    Revolving loans           F   \n",
       "17490  19489.0      449596     0.0         Cash loans           F   \n",
       "17491  19489.0      456213     0.0         Cash loans           F   \n",
       "17492  19490.0      456226     0.0         Cash loans           F   \n",
       "17493  19490.0      208832     0.0         Cash loans           F   \n",
       "\n",
       "      FLAG_OWN_CAR FLAG_OWN_REALTY  CNT_CHILDREN  AMT_INCOME_TOTAL  \\\n",
       "0                N               Y             0          180000.0   \n",
       "1                N               Y             0          225000.0   \n",
       "2                N               Y             0          112500.0   \n",
       "3                N               Y             0          135000.0   \n",
       "4                N               Y             0           90000.0   \n",
       "5                N               Y             0           90000.0   \n",
       "6                N               Y             0          143100.0   \n",
       "7                N               Y             0           90000.0   \n",
       "8                N               N             0           67500.0   \n",
       "9                N               Y             0           45000.0   \n",
       "10               N               Y             0          135000.0   \n",
       "11               N               Y             0          292500.0   \n",
       "12               N               Y             0           90000.0   \n",
       "13               N               Y             0           67500.0   \n",
       "14               N               N             0           94500.0   \n",
       "15               N               Y             1          157500.0   \n",
       "16               N               Y             1          135000.0   \n",
       "17               N               Y             0          135000.0   \n",
       "18               N               Y             0          162000.0   \n",
       "19               Y               Y             0           67500.0   \n",
       "20               N               Y             0          166500.0   \n",
       "21               N               Y             0          234000.0   \n",
       "22               Y               Y             1          157500.0   \n",
       "23               N               N             0          114750.0   \n",
       "24               N               Y             3          112500.0   \n",
       "...            ...             ...           ...               ...   \n",
       "17469            N               Y             0          252000.0   \n",
       "17470            N               Y             0          135000.0   \n",
       "17471            N               Y             0          135000.0   \n",
       "17472            Y               Y             0          180000.0   \n",
       "17473            Y               N             0          180000.0   \n",
       "17474            N               Y             0           67500.0   \n",
       "17475            N               Y             0           67500.0   \n",
       "17476            N               Y             0           63000.0   \n",
       "17477            N               Y             0           63000.0   \n",
       "17478            N               N             0           90000.0   \n",
       "17479            N               N             0          180000.0   \n",
       "17480            N               N             1           90000.0   \n",
       "17481            N               N             0           90000.0   \n",
       "17482            N               N             0          225000.0   \n",
       "17483            N               N             0           90000.0   \n",
       "17484            N               Y             0          135000.0   \n",
       "17485            N               Y             0          135000.0   \n",
       "17486            N               N             0          112500.0   \n",
       "17487            N               N             0           85500.0   \n",
       "17488            N               Y             1          135000.0   \n",
       "17489            N               Y             1          112500.0   \n",
       "17490            Y               N             1          112500.0   \n",
       "17491            Y               Y             1           90000.0   \n",
       "17492            Y               Y             0          225000.0   \n",
       "17493            Y               N             0          270000.0   \n",
       "\n",
       "       AMT_CREDIT  AMT_ANNUITY  AMT_GOODS_PRICE  NAME_TYPE_SUITE  \\\n",
       "0        254700.0      16407.0         225000.0    Unaccompanied   \n",
       "1        448272.0      28647.0         396000.0    Unaccompanied   \n",
       "2        101880.0      10053.0          90000.0    Unaccompanied   \n",
       "3        238500.0      24565.5         238500.0    Unaccompanied   \n",
       "4        270000.0      13500.0         270000.0    Unaccompanied   \n",
       "5        332946.0      16146.0         238500.0    Unaccompanied   \n",
       "6        729792.0      37260.0         630000.0    Unaccompanied   \n",
       "7        314055.0      13329.0         238500.0    Unaccompanied   \n",
       "8         95940.0       9472.5          90000.0    Unaccompanied   \n",
       "9        145557.0       7132.5         121500.0    Unaccompanied   \n",
       "10       582228.0      17154.0         486000.0    Unaccompanied   \n",
       "11       231097.5      18387.0         175500.0    Unaccompanied   \n",
       "12        68760.0       2596.5          45000.0    Unaccompanied   \n",
       "13       172021.5      12991.5         148500.0    Unaccompanied   \n",
       "14       312768.0      13905.0         270000.0    Unaccompanied   \n",
       "15      1097676.0      32224.5         958500.0    Unaccompanied   \n",
       "16       339241.5      12312.0         238500.0    Unaccompanied   \n",
       "17       597024.0      33466.5         540000.0    Unaccompanied   \n",
       "18       607500.0      26887.5         607500.0    Unaccompanied   \n",
       "19       805072.5      29047.5         679500.0    Unaccompanied   \n",
       "20       339228.0      17451.0         243000.0    Unaccompanied   \n",
       "21       314055.0      13329.0         238500.0    Unaccompanied   \n",
       "22       198000.0       9630.0         198000.0    Unaccompanied   \n",
       "23       900000.0      26446.5         900000.0    Unaccompanied   \n",
       "24       315000.0      15750.0         315000.0    Unaccompanied   \n",
       "...           ...          ...              ...              ...   \n",
       "17469    838453.5      42939.0         688500.0    Unaccompanied   \n",
       "17470   1056447.0      31018.5         922500.0         Children   \n",
       "17471    474444.0      18013.5         310500.0         Children   \n",
       "17472   1006920.0      39933.0         900000.0    Unaccompanied   \n",
       "17473    840996.0      24718.5         702000.0    Unaccompanied   \n",
       "17474    143910.0      14364.0         135000.0    Unaccompanied   \n",
       "17475    157500.0      11902.5         157500.0           Family   \n",
       "17476    152820.0      14418.0         135000.0           Family   \n",
       "17477    135000.0       6750.0         135000.0           Family   \n",
       "17478    314100.0      16573.5         225000.0    Unaccompanied   \n",
       "17479    270000.0      13500.0         270000.0    Unaccompanied   \n",
       "17480    490500.0      14472.0         490500.0    Unaccompanied   \n",
       "17481    270000.0      16645.5         270000.0    Unaccompanied   \n",
       "17482    271066.5      20394.0         234000.0           Family   \n",
       "17483    369720.0      22747.5         292500.0    Unaccompanied   \n",
       "17484    688090.5      22491.0         594000.0    Unaccompanied   \n",
       "17485    170640.0      11034.0         135000.0    Unaccompanied   \n",
       "17486    862560.0      25218.0         720000.0    Unaccompanied   \n",
       "17487    109008.0       7411.5          90000.0    Unaccompanied   \n",
       "17488    305955.0      21888.0         283500.0    Unaccompanied   \n",
       "17489    135000.0       6750.0         135000.0    Unaccompanied   \n",
       "17490    450000.0      27324.0         450000.0    Unaccompanied   \n",
       "17491    258709.5      20439.0         234000.0  Spouse, partner   \n",
       "17492    500566.5      34969.5         472500.0    Unaccompanied   \n",
       "17493    407520.0      32197.5         360000.0    Unaccompanied   \n",
       "\n",
       "           NAME_INCOME_TYPE            NAME_EDUCATION_TYPE  \\\n",
       "0                 Pensioner  Secondary / secondary special   \n",
       "1                 Pensioner  Secondary / secondary special   \n",
       "2                 Pensioner                Lower secondary   \n",
       "3                 Pensioner                Lower secondary   \n",
       "4                   Working  Secondary / secondary special   \n",
       "5                   Working  Secondary / secondary special   \n",
       "6                 Pensioner  Secondary / secondary special   \n",
       "7                 Pensioner  Secondary / secondary special   \n",
       "8                 Pensioner  Secondary / secondary special   \n",
       "9                 Pensioner  Secondary / secondary special   \n",
       "10                Pensioner  Secondary / secondary special   \n",
       "11                Pensioner  Secondary / secondary special   \n",
       "12                Pensioner  Secondary / secondary special   \n",
       "13                Pensioner  Secondary / secondary special   \n",
       "14                Pensioner  Secondary / secondary special   \n",
       "15                  Working  Secondary / secondary special   \n",
       "16                  Working  Secondary / secondary special   \n",
       "17                Pensioner  Secondary / secondary special   \n",
       "18                Pensioner  Secondary / secondary special   \n",
       "19                Pensioner  Secondary / secondary special   \n",
       "20                Pensioner  Secondary / secondary special   \n",
       "21                Pensioner  Secondary / secondary special   \n",
       "22                Pensioner  Secondary / secondary special   \n",
       "23                Pensioner  Secondary / secondary special   \n",
       "24                  Working              Incomplete higher   \n",
       "...                     ...                            ...   \n",
       "17469               Working               Higher education   \n",
       "17470             Pensioner  Secondary / secondary special   \n",
       "17471             Pensioner  Secondary / secondary special   \n",
       "17472             Pensioner  Secondary / secondary special   \n",
       "17473  Commercial associate  Secondary / secondary special   \n",
       "17474             Pensioner  Secondary / secondary special   \n",
       "17475             Pensioner  Secondary / secondary special   \n",
       "17476  Commercial associate  Secondary / secondary special   \n",
       "17477  Commercial associate  Secondary / secondary special   \n",
       "17478               Working  Secondary / secondary special   \n",
       "17479               Working  Secondary / secondary special   \n",
       "17480             Pensioner  Secondary / secondary special   \n",
       "17481             Pensioner  Secondary / secondary special   \n",
       "17482               Working               Higher education   \n",
       "17483               Working               Higher education   \n",
       "17484             Pensioner  Secondary / secondary special   \n",
       "17485             Pensioner  Secondary / secondary special   \n",
       "17486             Pensioner  Secondary / secondary special   \n",
       "17487             Pensioner  Secondary / secondary special   \n",
       "17488               Working               Higher education   \n",
       "17489               Working               Higher education   \n",
       "17490               Working  Secondary / secondary special   \n",
       "17491               Working  Secondary / secondary special   \n",
       "17492  Commercial associate  Secondary / secondary special   \n",
       "17493  Commercial associate  Secondary / secondary special   \n",
       "\n",
       "         NAME_FAMILY_STATUS  NAME_HOUSING_TYPE  REGION_POPULATION_RELATIVE  \\\n",
       "0                     Widow  House / apartment                    0.072508   \n",
       "1                     Widow  House / apartment                    0.072508   \n",
       "2      Single / not married  House / apartment                    0.030755   \n",
       "3      Single / not married  House / apartment                    0.030755   \n",
       "4                   Married  House / apartment                    0.035792   \n",
       "5                   Married  House / apartment                    0.035792   \n",
       "6                   Married  House / apartment                    0.010966   \n",
       "7                   Married  House / apartment                    0.010966   \n",
       "8                     Widow  House / apartment                    0.035792   \n",
       "9                     Widow  House / apartment                    0.035792   \n",
       "10                  Married  House / apartment                    0.005313   \n",
       "11                  Married  House / apartment                    0.006207   \n",
       "12                  Married  House / apartment                    0.009657   \n",
       "13                  Married  House / apartment                    0.030755   \n",
       "14                  Married  House / apartment                    0.019101   \n",
       "15                  Married  House / apartment                    0.025164   \n",
       "16                  Married  House / apartment                    0.025164   \n",
       "17                  Married  House / apartment                    0.030755   \n",
       "18                  Married  House / apartment                    0.014520   \n",
       "19                  Married  House / apartment                    0.035792   \n",
       "20                  Married  House / apartment                    0.008019   \n",
       "21                  Married  House / apartment                    0.035792   \n",
       "22                  Married  House / apartment                    0.030755   \n",
       "23                  Married  House / apartment                    0.018850   \n",
       "24                  Married  House / apartment                    0.010966   \n",
       "...                     ...                ...                         ...   \n",
       "17469        Civil marriage  House / apartment                    0.010032   \n",
       "17470               Married  House / apartment                    0.004960   \n",
       "17471               Married  House / apartment                    0.004960   \n",
       "17472               Married  House / apartment                    0.006629   \n",
       "17473               Married  House / apartment                    0.006629   \n",
       "17474        Civil marriage  House / apartment                    0.030755   \n",
       "17475        Civil marriage  House / apartment                    0.030755   \n",
       "17476               Married  House / apartment                    0.003069   \n",
       "17477               Married  House / apartment                    0.003069   \n",
       "17478               Married  House / apartment                    0.003069   \n",
       "17479               Married  House / apartment                    0.003069   \n",
       "17480             Separated  House / apartment                    0.018209   \n",
       "17481             Separated  House / apartment                    0.018209   \n",
       "17482               Married  House / apartment                    0.031329   \n",
       "17483               Married  House / apartment                    0.031329   \n",
       "17484               Married  House / apartment                    0.035792   \n",
       "17485               Married  House / apartment                    0.035792   \n",
       "17486               Married  House / apartment                    0.024610   \n",
       "17487               Married  House / apartment                    0.024610   \n",
       "17488        Civil marriage  House / apartment                    0.020246   \n",
       "17489        Civil marriage  House / apartment                    0.020246   \n",
       "17490               Married  House / apartment                    0.020246   \n",
       "17491               Married  House / apartment                    0.020246   \n",
       "17492               Married  House / apartment                    0.031329   \n",
       "17493               Married  House / apartment                    0.031329   \n",
       "\n",
       "       DAYS_BIRTH  DAYS_EMPLOYED  DAYS_REGISTRATION  DAYS_ID_PUBLISH  \\\n",
       "0          -23946         365243            -6935.0            -3948   \n",
       "1          -24051         365243            -7040.0            -4053   \n",
       "2          -22321         365243           -13611.0            -2523   \n",
       "3          -22609         365243              -73.0            -2811   \n",
       "4          -16416          -1223            -2542.0            -4382   \n",
       "5          -16649          -1456            -2775.0             -192   \n",
       "6          -21491         365243             -332.0              -86   \n",
       "7          -21590         365243             -401.0             -185   \n",
       "8          -21991         365243            -7720.0            -4780   \n",
       "9          -22154         365243            -7913.0            -4943   \n",
       "10         -17479         365243           -10234.0            -1015   \n",
       "11         -22056         365243            -4512.0            -5312   \n",
       "12         -22517         365243            -3714.0            -4665   \n",
       "13         -23237         365243             -206.0            -4609   \n",
       "14         -23571         365243           -15940.0            -4130   \n",
       "15         -15085          -8508             -739.0            -2020   \n",
       "16         -15172          -8595             -826.0            -2107   \n",
       "17         -21545         365243           -10349.0            -4705   \n",
       "18         -22299         365243            -2233.0            -2303   \n",
       "19         -20990         365243            -6020.0            -4450   \n",
       "20         -21889         365243            -3102.0            -4216   \n",
       "21         -23571         365243            -4623.0            -4628   \n",
       "22         -16388         365243            -2583.0            -4330   \n",
       "23         -18615         365243            -6584.0            -2164   \n",
       "24         -13738          -5827            -5919.0            -4491   \n",
       "...           ...            ...                ...              ...   \n",
       "17469      -18793         -11358            -3482.0            -2326   \n",
       "17470      -22122         365243            -7997.0            -4703   \n",
       "17471      -22332         365243            -8207.0            -4913   \n",
       "17472      -18776         365243            -1886.0            -2313   \n",
       "17473      -18800          -4699            -1910.0            -2337   \n",
       "17474      -22355         365243            -2200.0            -3765   \n",
       "17475      -22585         365243            -2430.0            -3995   \n",
       "17476      -16557          -1277             -810.0              -99   \n",
       "17477      -16557          -1277             -810.0              -99   \n",
       "17478      -20042          -2455            -8616.0            -3443   \n",
       "17479      -20224          -2637            -8798.0            -3625   \n",
       "17480      -20575         365243           -11983.0            -4114   \n",
       "17481      -20768         365243           -12176.0            -4307   \n",
       "17482      -15358          -4314            -1724.0            -2967   \n",
       "17483      -15450          -4406            -1816.0            -3059   \n",
       "17484      -21633         365243            -2445.0            -4909   \n",
       "17485      -21755         365243            -2567.0            -5031   \n",
       "17486      -22712         365243           -11805.0            -3705   \n",
       "17487      -22995         365243           -12088.0            -3988   \n",
       "17488       -9844          -1266            -7511.0            -1053   \n",
       "17489      -10016           -888            -7683.0            -1225   \n",
       "17490      -14502          -2058            -2250.0            -6124   \n",
       "17491      -14589          -2145            -2337.0            -6211   \n",
       "17492      -14106           -226            -2463.0             -933   \n",
       "17493      -14248           -277            -2605.0            -1075   \n",
       "\n",
       "       OWN_CAR_AGE  FLAG_MOBIL  FLAG_EMP_PHONE  FLAG_WORK_PHONE  \\\n",
       "0              NaN           1               0                0   \n",
       "1              NaN           1               0                0   \n",
       "2              NaN           1               0                0   \n",
       "3              NaN           1               0                0   \n",
       "4              NaN           1               1                0   \n",
       "5              NaN           1               1                0   \n",
       "6              NaN           1               0                0   \n",
       "7              NaN           1               0                0   \n",
       "8              NaN           1               0                0   \n",
       "9              NaN           1               0                0   \n",
       "10             NaN           1               0                0   \n",
       "11             NaN           1               0                0   \n",
       "12             NaN           1               0                0   \n",
       "13             NaN           1               0                0   \n",
       "14             NaN           1               0                0   \n",
       "15             NaN           1               1                0   \n",
       "16             NaN           1               1                0   \n",
       "17             NaN           1               0                0   \n",
       "18             NaN           1               0                0   \n",
       "19            25.0           1               0                0   \n",
       "20             NaN           1               0                0   \n",
       "21             NaN           1               0                0   \n",
       "22             1.0           1               0                0   \n",
       "23             NaN           1               0                0   \n",
       "24             NaN           1               1                0   \n",
       "...            ...         ...             ...              ...   \n",
       "17469          NaN           1               1                0   \n",
       "17470          NaN           1               0                0   \n",
       "17471          NaN           1               0                0   \n",
       "17472         11.0           1               0                0   \n",
       "17473         11.0           1               1                0   \n",
       "17474          NaN           1               0                0   \n",
       "17475          NaN           1               0                0   \n",
       "17476          NaN           1               1                0   \n",
       "17477          NaN           1               1                0   \n",
       "17478          NaN           1               1                0   \n",
       "17479          NaN           1               1                0   \n",
       "17480          NaN           1               0                0   \n",
       "17481          NaN           1               0                0   \n",
       "17482          NaN           1               1                0   \n",
       "17483          NaN           1               1                0   \n",
       "17484          NaN           1               0                0   \n",
       "17485          NaN           1               0                0   \n",
       "17486          NaN           1               0                0   \n",
       "17487          NaN           1               0                0   \n",
       "17488          NaN           1               1                0   \n",
       "17489          NaN           1               1                0   \n",
       "17490         18.0           1               1                1   \n",
       "17491         18.0           1               1                1   \n",
       "17492         11.0           1               1                0   \n",
       "17493         12.0           1               1                0   \n",
       "\n",
       "       FLAG_CONT_MOBILE  FLAG_PHONE  FLAG_EMAIL        OCCUPATION_TYPE  \\\n",
       "0                     1           0           0                    NaN   \n",
       "1                     1           1           1                    NaN   \n",
       "2                     1           0           0                    NaN   \n",
       "3                     1           1           0                    NaN   \n",
       "4                     1           0           0                    NaN   \n",
       "5                     1           0           0                    NaN   \n",
       "6                     1           0           0                    NaN   \n",
       "7                     1           0           0                    NaN   \n",
       "8                     1           1           0                    NaN   \n",
       "9                     1           0           0                    NaN   \n",
       "10                    1           0           0                    NaN   \n",
       "11                    1           0           1                    NaN   \n",
       "12                    1           0           0                    NaN   \n",
       "13                    1           0           0                    NaN   \n",
       "14                    1           0           0                    NaN   \n",
       "15                    1           0           0               Laborers   \n",
       "16                    1           0           0               Laborers   \n",
       "17                    1           0           0                    NaN   \n",
       "18                    1           1           0                    NaN   \n",
       "19                    1           0           0                    NaN   \n",
       "20                    1           0           0                    NaN   \n",
       "21                    1           0           0                    NaN   \n",
       "22                    1           0           0                    NaN   \n",
       "23                    1           0           0                    NaN   \n",
       "24                    1           0           0          Cooking staff   \n",
       "...                 ...         ...         ...                    ...   \n",
       "17469                 1           0           0                    NaN   \n",
       "17470                 1           0           0                    NaN   \n",
       "17471                 1           0           0                    NaN   \n",
       "17472                 1           1           0                    NaN   \n",
       "17473                 1           0           0               Managers   \n",
       "17474                 1           0           0                    NaN   \n",
       "17475                 1           0           0                    NaN   \n",
       "17476                 1           0           0            Sales staff   \n",
       "17477                 1           0           0            Sales staff   \n",
       "17478                 1           0           0                Drivers   \n",
       "17479                 1           0           0                Drivers   \n",
       "17480                 1           0           0                    NaN   \n",
       "17481                 1           0           0                    NaN   \n",
       "17482                 1           0           0            Sales staff   \n",
       "17483                 1           0           0            Sales staff   \n",
       "17484                 1           0           0                    NaN   \n",
       "17485                 1           0           0                    NaN   \n",
       "17486                 1           0           0                    NaN   \n",
       "17487                 1           0           0                    NaN   \n",
       "17488                 1           0           0                    NaN   \n",
       "17489                 1           0           1             Core staff   \n",
       "17490                 1           1           0  High skill tech staff   \n",
       "17491                 1           1           0  High skill tech staff   \n",
       "17492                 1           0           0               Managers   \n",
       "17493                 1           0           0               Managers   \n",
       "\n",
       "       CNT_FAM_MEMBERS  REGION_RATING_CLIENT  REGION_RATING_CLIENT_W_CITY  \\\n",
       "0                  1.0                     1                            1   \n",
       "1                  1.0                     1                            1   \n",
       "2                  1.0                     2                            2   \n",
       "3                  1.0                     2                            2   \n",
       "4                  2.0                     2                            2   \n",
       "5                  2.0                     2                            2   \n",
       "6                  2.0                     2                            2   \n",
       "7                  2.0                     2                            2   \n",
       "8                  1.0                     2                            2   \n",
       "9                  1.0                     2                            2   \n",
       "10                 2.0                     2                            2   \n",
       "11                 2.0                     2                            2   \n",
       "12                 2.0                     2                            2   \n",
       "13                 2.0                     2                            2   \n",
       "14                 2.0                     2                            2   \n",
       "15                 3.0                     2                            2   \n",
       "16                 3.0                     2                            2   \n",
       "17                 2.0                     2                            2   \n",
       "18                 2.0                     2                            2   \n",
       "19                 2.0                     2                            2   \n",
       "20                 2.0                     2                            2   \n",
       "21                 2.0                     2                            2   \n",
       "22                 3.0                     2                            2   \n",
       "23                 2.0                     2                            2   \n",
       "24                 5.0                     2                            2   \n",
       "...                ...                   ...                          ...   \n",
       "17469              2.0                     2                            2   \n",
       "17470              2.0                     2                            2   \n",
       "17471              2.0                     2                            2   \n",
       "17472              2.0                     2                            2   \n",
       "17473              2.0                     2                            2   \n",
       "17474              2.0                     2                            2   \n",
       "17475              2.0                     2                            2   \n",
       "17476              2.0                     3                            3   \n",
       "17477              2.0                     3                            3   \n",
       "17478              2.0                     3                            3   \n",
       "17479              2.0                     3                            3   \n",
       "17480              2.0                     3                            3   \n",
       "17481              1.0                     3                            3   \n",
       "17482              2.0                     2                            2   \n",
       "17483              2.0                     2                            2   \n",
       "17484              2.0                     2                            2   \n",
       "17485              2.0                     2                            2   \n",
       "17486              2.0                     2                            2   \n",
       "17487              2.0                     2                            2   \n",
       "17488              3.0                     3                            3   \n",
       "17489              3.0                     3                            3   \n",
       "17490              3.0                     3                            3   \n",
       "17491              3.0                     3                            3   \n",
       "17492              2.0                     2                            2   \n",
       "17493              2.0                     2                            2   \n",
       "\n",
       "      WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "0                      WEDNESDAY                       16   \n",
       "1                      WEDNESDAY                       17   \n",
       "2                         FRIDAY                       10   \n",
       "3                       SATURDAY                       10   \n",
       "4                      WEDNESDAY                       12   \n",
       "5                         FRIDAY                        9   \n",
       "6                       THURSDAY                       14   \n",
       "7                         FRIDAY                       12   \n",
       "8                        TUESDAY                        9   \n",
       "9                       THURSDAY                       10   \n",
       "10                     WEDNESDAY                       11   \n",
       "11                       TUESDAY                       15   \n",
       "12                        SUNDAY                       10   \n",
       "13                        FRIDAY                       10   \n",
       "14                      SATURDAY                       13   \n",
       "15                       TUESDAY                        8   \n",
       "16                        FRIDAY                       11   \n",
       "17                        FRIDAY                       12   \n",
       "18                        FRIDAY                       10   \n",
       "19                       TUESDAY                       12   \n",
       "20                       TUESDAY                       13   \n",
       "21                       TUESDAY                       15   \n",
       "22                        FRIDAY                       13   \n",
       "23                      SATURDAY                       13   \n",
       "24                        FRIDAY                       17   \n",
       "...                          ...                      ...   \n",
       "17469                   THURSDAY                        6   \n",
       "17470                     MONDAY                       14   \n",
       "17471                     MONDAY                       12   \n",
       "17472                     FRIDAY                        5   \n",
       "17473                     MONDAY                       10   \n",
       "17474                     FRIDAY                       10   \n",
       "17475                   THURSDAY                        9   \n",
       "17476                  WEDNESDAY                       12   \n",
       "17477                  WEDNESDAY                       12   \n",
       "17478                   THURSDAY                       18   \n",
       "17479                   THURSDAY                       15   \n",
       "17480                  WEDNESDAY                       14   \n",
       "17481                     SUNDAY                        7   \n",
       "17482                   THURSDAY                       13   \n",
       "17483                     FRIDAY                       11   \n",
       "17484                     FRIDAY                       13   \n",
       "17485                     MONDAY                       10   \n",
       "17486                   SATURDAY                       13   \n",
       "17487                   SATURDAY                       15   \n",
       "17488                   THURSDAY                        9   \n",
       "17489                     MONDAY                       11   \n",
       "17490                   THURSDAY                       10   \n",
       "17491                   THURSDAY                       13   \n",
       "17492                   THURSDAY                       15   \n",
       "17493                     FRIDAY                       11   \n",
       "\n",
       "       REG_REGION_NOT_LIVE_REGION  REG_REGION_NOT_WORK_REGION  \\\n",
       "0                               0                           0   \n",
       "1                               0                           0   \n",
       "2                               0                           0   \n",
       "3                               0                           0   \n",
       "4                               0                           0   \n",
       "5                               0                           0   \n",
       "6                               0                           0   \n",
       "7                               0                           0   \n",
       "8                               0                           0   \n",
       "9                               0                           0   \n",
       "10                              0                           0   \n",
       "11                              0                           0   \n",
       "12                              0                           0   \n",
       "13                              0                           0   \n",
       "14                              0                           0   \n",
       "15                              0                           0   \n",
       "16                              0                           0   \n",
       "17                              0                           0   \n",
       "18                              0                           0   \n",
       "19                              0                           0   \n",
       "20                              0                           0   \n",
       "21                              0                           0   \n",
       "22                              0                           0   \n",
       "23                              0                           0   \n",
       "24                              0                           0   \n",
       "...                           ...                         ...   \n",
       "17469                           0                           0   \n",
       "17470                           0                           0   \n",
       "17471                           0                           0   \n",
       "17472                           0                           0   \n",
       "17473                           0                           0   \n",
       "17474                           0                           0   \n",
       "17475                           0                           0   \n",
       "17476                           0                           0   \n",
       "17477                           0                           0   \n",
       "17478                           0                           0   \n",
       "17479                           0                           0   \n",
       "17480                           0                           0   \n",
       "17481                           0                           0   \n",
       "17482                           0                           0   \n",
       "17483                           0                           0   \n",
       "17484                           0                           0   \n",
       "17485                           0                           0   \n",
       "17486                           0                           0   \n",
       "17487                           0                           0   \n",
       "17488                           0                           0   \n",
       "17489                           0                           0   \n",
       "17490                           0                           0   \n",
       "17491                           0                           0   \n",
       "17492                           0                           0   \n",
       "17493                           0                           0   \n",
       "\n",
       "       LIVE_REGION_NOT_WORK_REGION  REG_CITY_NOT_LIVE_CITY  \\\n",
       "0                                0                       0   \n",
       "1                                0                       0   \n",
       "2                                0                       0   \n",
       "3                                0                       0   \n",
       "4                                0                       0   \n",
       "5                                0                       0   \n",
       "6                                0                       0   \n",
       "7                                0                       0   \n",
       "8                                0                       0   \n",
       "9                                0                       0   \n",
       "10                               0                       0   \n",
       "11                               0                       0   \n",
       "12                               0                       0   \n",
       "13                               0                       0   \n",
       "14                               0                       0   \n",
       "15                               0                       0   \n",
       "16                               0                       0   \n",
       "17                               0                       0   \n",
       "18                               0                       0   \n",
       "19                               0                       0   \n",
       "20                               0                       0   \n",
       "21                               0                       0   \n",
       "22                               0                       0   \n",
       "23                               0                       0   \n",
       "24                               0                       0   \n",
       "...                            ...                     ...   \n",
       "17469                            0                       0   \n",
       "17470                            0                       0   \n",
       "17471                            0                       0   \n",
       "17472                            0                       0   \n",
       "17473                            0                       0   \n",
       "17474                            0                       0   \n",
       "17475                            0                       0   \n",
       "17476                            0                       0   \n",
       "17477                            0                       0   \n",
       "17478                            0                       0   \n",
       "17479                            0                       0   \n",
       "17480                            0                       0   \n",
       "17481                            0                       0   \n",
       "17482                            0                       0   \n",
       "17483                            0                       0   \n",
       "17484                            0                       0   \n",
       "17485                            0                       0   \n",
       "17486                            0                       0   \n",
       "17487                            0                       0   \n",
       "17488                            0                       0   \n",
       "17489                            0                       0   \n",
       "17490                            0                       0   \n",
       "17491                            0                       0   \n",
       "17492                            0                       0   \n",
       "17493                            0                       0   \n",
       "\n",
       "       REG_CITY_NOT_WORK_CITY  LIVE_CITY_NOT_WORK_CITY  \\\n",
       "0                           0                        0   \n",
       "1                           0                        0   \n",
       "2                           0                        0   \n",
       "3                           0                        0   \n",
       "4                           1                        1   \n",
       "5                           1                        1   \n",
       "6                           0                        0   \n",
       "7                           0                        0   \n",
       "8                           0                        0   \n",
       "9                           0                        0   \n",
       "10                          0                        0   \n",
       "11                          0                        0   \n",
       "12                          0                        0   \n",
       "13                          0                        0   \n",
       "14                          0                        0   \n",
       "15                          1                        1   \n",
       "16                          1                        1   \n",
       "17                          0                        0   \n",
       "18                          0                        0   \n",
       "19                          0                        0   \n",
       "20                          0                        0   \n",
       "21                          0                        0   \n",
       "22                          0                        0   \n",
       "23                          0                        0   \n",
       "24                          0                        0   \n",
       "...                       ...                      ...   \n",
       "17469                       0                        0   \n",
       "17470                       0                        0   \n",
       "17471                       0                        0   \n",
       "17472                       0                        0   \n",
       "17473                       0                        0   \n",
       "17474                       0                        0   \n",
       "17475                       0                        0   \n",
       "17476                       0                        0   \n",
       "17477                       0                        0   \n",
       "17478                       0                        0   \n",
       "17479                       0                        0   \n",
       "17480                       0                        0   \n",
       "17481                       0                        0   \n",
       "17482                       0                        0   \n",
       "17483                       0                        0   \n",
       "17484                       0                        0   \n",
       "17485                       0                        0   \n",
       "17486                       0                        0   \n",
       "17487                       0                        0   \n",
       "17488                       0                        0   \n",
       "17489                       0                        0   \n",
       "17490                       0                        0   \n",
       "17491                       0                        0   \n",
       "17492                       0                        0   \n",
       "17493                       0                        0   \n",
       "\n",
       "            ORGANIZATION_TYPE  EXT_SOURCE_1  EXT_SOURCE_2  EXT_SOURCE_3  \\\n",
       "0                         XNA           NaN      0.458685      0.528093   \n",
       "1                         XNA           NaN      0.710318      0.554947   \n",
       "2                         XNA           NaN      0.664900      0.504681   \n",
       "3                         XNA      0.279026      0.504692      0.466864   \n",
       "4      Business Entity Type 3      0.479804      0.514119           NaN   \n",
       "5      Business Entity Type 3           NaN      0.575513           NaN   \n",
       "6                         XNA           NaN      0.303433      0.634706   \n",
       "7                         XNA           NaN      0.172657      0.659406   \n",
       "8                         XNA           NaN      0.569745      0.602386   \n",
       "9                         XNA           NaN      0.609567      0.350696   \n",
       "10                        XNA           NaN      0.656749      0.554947   \n",
       "11                        XNA           NaN      0.554697      0.239226   \n",
       "12                        XNA           NaN      0.620249      0.829750   \n",
       "13                        XNA      0.759941      0.711311      0.761026   \n",
       "14                        XNA           NaN      0.714069      0.429424   \n",
       "15           Industry: type 5           NaN      0.265256      0.735221   \n",
       "16           Industry: type 5           NaN      0.263144      0.713631   \n",
       "17                        XNA      0.756023      0.451965      0.622922   \n",
       "18                        XNA      0.547789      0.372422      0.709189   \n",
       "19                        XNA      0.283881      0.606143      0.477649   \n",
       "20                        XNA           NaN      0.501434      0.411849   \n",
       "21                        XNA           NaN      0.676461      0.689479   \n",
       "22                        XNA           NaN      0.467139      0.447179   \n",
       "23                        XNA           NaN      0.418705      0.581484   \n",
       "24               Kindergarten           NaN      0.129925      0.328063   \n",
       "...                       ...           ...           ...           ...   \n",
       "17469  Business Entity Type 2           NaN      0.686566      0.586740   \n",
       "17470                     XNA      0.793389      0.747837      0.746300   \n",
       "17471                     XNA      0.627384      0.658738      0.754406   \n",
       "17472                     XNA           NaN      0.685153      0.431192   \n",
       "17473           Self-employed           NaN      0.350089      0.265049   \n",
       "17474                     XNA      0.702671      0.111986      0.641368   \n",
       "17475                     XNA      0.667471      0.004513      0.574447   \n",
       "17476           Self-employed           NaN           NaN      0.853731   \n",
       "17477           Self-employed           NaN      0.472924      0.853731   \n",
       "17478  Business Entity Type 2           NaN      0.695752      0.758393   \n",
       "17479  Business Entity Type 2           NaN      0.674328      0.719491   \n",
       "17480                     XNA           NaN      0.335201      0.581484   \n",
       "17481                     XNA           NaN      0.319830      0.617826   \n",
       "17482           Self-employed      0.757658      0.680811      0.636376   \n",
       "17483           Self-employed      0.682714      0.499351      0.591977   \n",
       "17484                     XNA      0.839565      0.354225      0.358951   \n",
       "17485                     XNA      0.890056      0.355126      0.363945   \n",
       "17486                     XNA           NaN      0.506212           NaN   \n",
       "17487                     XNA           NaN      0.465881           NaN   \n",
       "17488       Industry: type 12      0.510609      0.240384      0.511892   \n",
       "17489           Trade: type 6      0.511806      0.241820      0.185202   \n",
       "17490       Transport: type 3           NaN      0.423305      0.581484   \n",
       "17491           Self-employed      0.585450      0.264486      0.565608   \n",
       "17492                 Telecom      0.470808      0.737905      0.394495   \n",
       "17493                 Telecom      0.458642      0.767190      0.365617   \n",
       "\n",
       "       APARTMENTS_AVG  BASEMENTAREA_AVG  YEARS_BEGINEXPLUATATION_AVG  \\\n",
       "0              0.3041            0.1854                       0.9791   \n",
       "1              0.2959            0.1785                       0.9786   \n",
       "2                 NaN               NaN                          NaN   \n",
       "3                 NaN               NaN                          NaN   \n",
       "4                 NaN               NaN                          NaN   \n",
       "5                 NaN               NaN                          NaN   \n",
       "6                 NaN               NaN                          NaN   \n",
       "7                 NaN               NaN                          NaN   \n",
       "8                 NaN               NaN                          NaN   \n",
       "9                 NaN               NaN                          NaN   \n",
       "10                NaN               NaN                          NaN   \n",
       "11                NaN               NaN                          NaN   \n",
       "12                NaN               NaN                          NaN   \n",
       "13                NaN               NaN                          NaN   \n",
       "14                NaN               NaN                          NaN   \n",
       "15                NaN               NaN                          NaN   \n",
       "16                NaN               NaN                          NaN   \n",
       "17                NaN               NaN                          NaN   \n",
       "18                NaN               NaN                          NaN   \n",
       "19                NaN               NaN                          NaN   \n",
       "20                NaN               NaN                          NaN   \n",
       "21                NaN               NaN                          NaN   \n",
       "22                NaN               NaN                          NaN   \n",
       "23                NaN               NaN                          NaN   \n",
       "24                NaN               NaN                          NaN   \n",
       "...               ...               ...                          ...   \n",
       "17469          0.0825            0.0802                       0.9752   \n",
       "17470             NaN               NaN                          NaN   \n",
       "17471             NaN               NaN                          NaN   \n",
       "17472          0.0454            0.0000                       0.9901   \n",
       "17473          0.0454            0.0000                       0.9901   \n",
       "17474             NaN               NaN                          NaN   \n",
       "17475             NaN               NaN                          NaN   \n",
       "17476             NaN               NaN                          NaN   \n",
       "17477             NaN               NaN                          NaN   \n",
       "17478          0.0742            0.0555                       0.9841   \n",
       "17479          0.0742            0.0555                       0.9836   \n",
       "17480          0.0835            0.0295                       0.9831   \n",
       "17481          0.0835            0.0295                       0.9826   \n",
       "17482          0.0381            0.0385                       0.9697   \n",
       "17483          0.0381            0.0385                       0.9697   \n",
       "17484             NaN               NaN                          NaN   \n",
       "17485             NaN               NaN                          NaN   \n",
       "17486          0.1938            0.1218                       0.9916   \n",
       "17487          0.1938            0.1218                       0.9911   \n",
       "17488          0.0742            0.1276                       0.9826   \n",
       "17489          0.0742            0.1276                       0.9821   \n",
       "17490             NaN               NaN                          NaN   \n",
       "17491             NaN               NaN                          NaN   \n",
       "17492          0.0392            0.0402                       0.9737   \n",
       "17493          0.0392            0.0402                       0.9732   \n",
       "\n",
       "       YEARS_BUILD_AVG ...   YEARS_BUILD_MEDI  COMMONAREA_MEDI  \\\n",
       "0               0.7144 ...             0.7182           0.0000   \n",
       "1               0.7076 ...             0.7115           0.0000   \n",
       "2                  NaN ...                NaN              NaN   \n",
       "3                  NaN ...                NaN              NaN   \n",
       "4                  NaN ...                NaN              NaN   \n",
       "5                  NaN ...                NaN              NaN   \n",
       "6                  NaN ...                NaN              NaN   \n",
       "7                  NaN ...                NaN              NaN   \n",
       "8                  NaN ...                NaN              NaN   \n",
       "9                  NaN ...                NaN              NaN   \n",
       "10                 NaN ...                NaN              NaN   \n",
       "11                 NaN ...                NaN              NaN   \n",
       "12                 NaN ...                NaN              NaN   \n",
       "13                 NaN ...                NaN              NaN   \n",
       "14                 NaN ...                NaN              NaN   \n",
       "15                 NaN ...                NaN              NaN   \n",
       "16                 NaN ...                NaN              NaN   \n",
       "17                 NaN ...                NaN              NaN   \n",
       "18                 NaN ...                NaN              NaN   \n",
       "19                 NaN ...                NaN              NaN   \n",
       "20                 NaN ...                NaN              NaN   \n",
       "21                 NaN ...                NaN              NaN   \n",
       "22                 NaN ...                NaN              NaN   \n",
       "23                 NaN ...                NaN              NaN   \n",
       "24                 NaN ...                NaN              NaN   \n",
       "...                ... ...                ...              ...   \n",
       "17469           0.6600 ...             0.6645           0.0277   \n",
       "17470              NaN ...                NaN              NaN   \n",
       "17471              NaN ...                NaN              NaN   \n",
       "17472           0.9864 ...             0.9866           0.0155   \n",
       "17473           0.9864 ...             0.9866           0.0155   \n",
       "17474              NaN ...                NaN              NaN   \n",
       "17475              NaN ...                NaN              NaN   \n",
       "17476              NaN ...                NaN              NaN   \n",
       "17477              NaN ...                NaN              NaN   \n",
       "17478              NaN ...                NaN              NaN   \n",
       "17479              NaN ...                NaN              NaN   \n",
       "17480           0.7688 ...             0.7719           0.0000   \n",
       "17481           0.7620 ...             0.7652           0.0000   \n",
       "17482           0.5852 ...             0.5907           0.0255   \n",
       "17483           0.5852 ...             0.5907           0.0255   \n",
       "17484              NaN ...                NaN              NaN   \n",
       "17485              NaN ...                NaN              NaN   \n",
       "17486           0.8844 ...             0.8859           0.0501   \n",
       "17487           0.8776 ...             0.8792           0.0501   \n",
       "17488           0.7620 ...             0.7652           0.0116   \n",
       "17489           0.7552 ...             0.7585           0.0116   \n",
       "17490              NaN ...                NaN              NaN   \n",
       "17491              NaN ...                NaN              NaN   \n",
       "17492           0.6396 ...             0.6444           0.0038   \n",
       "17493           0.6328 ...             0.6377           0.0038   \n",
       "\n",
       "       ELEVATORS_MEDI  ENTRANCES_MEDI  FLOORSMAX_MEDI  FLOORSMIN_MEDI  \\\n",
       "0                0.32          0.2759          0.3333          0.0417   \n",
       "1                0.32          0.2759          0.3333          0.3750   \n",
       "2                 NaN             NaN             NaN             NaN   \n",
       "3                 NaN             NaN             NaN             NaN   \n",
       "4                 NaN             NaN             NaN             NaN   \n",
       "5                 NaN             NaN             NaN             NaN   \n",
       "6                 NaN             NaN             NaN             NaN   \n",
       "7                 NaN             NaN             NaN             NaN   \n",
       "8                 NaN             NaN             NaN             NaN   \n",
       "9                 NaN             NaN             NaN             NaN   \n",
       "10                NaN             NaN             NaN             NaN   \n",
       "11                NaN             NaN             NaN             NaN   \n",
       "12                NaN             NaN             NaN             NaN   \n",
       "13                NaN             NaN             NaN             NaN   \n",
       "14                NaN             NaN             NaN             NaN   \n",
       "15                NaN             NaN             NaN             NaN   \n",
       "16                NaN             NaN             NaN             NaN   \n",
       "17                NaN             NaN             NaN             NaN   \n",
       "18                NaN             NaN             NaN             NaN   \n",
       "19                NaN             NaN             NaN             NaN   \n",
       "20                NaN             NaN             NaN             NaN   \n",
       "21                NaN             NaN             NaN             NaN   \n",
       "22                NaN             NaN             NaN             NaN   \n",
       "23                NaN             NaN             NaN             NaN   \n",
       "24                NaN             NaN             NaN             NaN   \n",
       "...               ...             ...             ...             ...   \n",
       "17469            0.00          0.1379          0.1667          0.2083   \n",
       "17470             NaN             NaN             NaN             NaN   \n",
       "17471             NaN             NaN             NaN             NaN   \n",
       "17472            0.04          0.0345          0.2917          0.3333   \n",
       "17473            0.04          0.0345          0.2917          0.3333   \n",
       "17474             NaN             NaN             NaN             NaN   \n",
       "17475             NaN             NaN             NaN             NaN   \n",
       "17476             NaN             NaN             NaN             NaN   \n",
       "17477             NaN             NaN             NaN             NaN   \n",
       "17478            0.08          0.0690          0.3333             NaN   \n",
       "17479            0.08          0.0690          0.3333             NaN   \n",
       "17480            0.00          0.0345          0.1667          0.2083   \n",
       "17481            0.00          0.0345          0.1667          0.2083   \n",
       "17482            0.00          0.1034          0.1250          0.1667   \n",
       "17483            0.00          0.1034          0.1250          0.1667   \n",
       "17484             NaN             NaN             NaN             NaN   \n",
       "17485             NaN             NaN             NaN             NaN   \n",
       "17486            0.20          0.1379          0.5000          0.5417   \n",
       "17487            0.20          0.1379          0.5000          0.5417   \n",
       "17488            0.08          0.0690          0.3333          0.3750   \n",
       "17489            0.08          0.0690          0.3333          0.3750   \n",
       "17490             NaN             NaN             NaN             NaN   \n",
       "17491             NaN             NaN             NaN             NaN   \n",
       "17492            0.00          0.0690          0.1667          0.2083   \n",
       "17493            0.00          0.0690          0.1667          0.2083   \n",
       "\n",
       "       LANDAREA_MEDI  LIVINGAPARTMENTS_MEDI  LIVINGAREA_MEDI  \\\n",
       "0             0.0000                 0.2454           0.2861   \n",
       "1             0.0000                 0.2454           0.2741   \n",
       "2                NaN                    NaN              NaN   \n",
       "3                NaN                    NaN              NaN   \n",
       "4                NaN                    NaN              NaN   \n",
       "5                NaN                    NaN              NaN   \n",
       "6                NaN                    NaN              NaN   \n",
       "7                NaN                    NaN              NaN   \n",
       "8                NaN                    NaN              NaN   \n",
       "9                NaN                    NaN              NaN   \n",
       "10               NaN                    NaN              NaN   \n",
       "11               NaN                    NaN              NaN   \n",
       "12               NaN                    NaN              NaN   \n",
       "13               NaN                    NaN              NaN   \n",
       "14               NaN                    NaN              NaN   \n",
       "15               NaN                    NaN              NaN   \n",
       "16               NaN                    NaN              NaN   \n",
       "17               NaN                    NaN              NaN   \n",
       "18               NaN                    NaN              NaN   \n",
       "19               NaN                    NaN              NaN   \n",
       "20               NaN                    NaN              NaN   \n",
       "21               NaN                    NaN              NaN   \n",
       "22               NaN                    NaN              NaN   \n",
       "23               NaN                    NaN              NaN   \n",
       "24               NaN                    NaN              NaN   \n",
       "...              ...                    ...              ...   \n",
       "17469         0.0745                 0.0684           0.0652   \n",
       "17470            NaN                    NaN              NaN   \n",
       "17471            NaN                    NaN              NaN   \n",
       "17472         0.0099                 0.0355           0.0457   \n",
       "17473         0.0099                 0.0355           0.0457   \n",
       "17474            NaN                    NaN              NaN   \n",
       "17475            NaN                    NaN              NaN   \n",
       "17476            NaN                    NaN              NaN   \n",
       "17477            NaN                    NaN              NaN   \n",
       "17478         0.0342                    NaN           0.0461   \n",
       "17479         0.0342                    NaN           0.0461   \n",
       "17480         0.0326                 0.0676           0.0291   \n",
       "17481         0.0326                 0.0676           0.0291   \n",
       "17482         0.2542                 0.0274           0.0204   \n",
       "17483         0.2542                 0.0274           0.0204   \n",
       "17484            NaN                    NaN              NaN   \n",
       "17485            NaN                    NaN              NaN   \n",
       "17486         0.1319                 0.1608           0.2060   \n",
       "17487         0.1319                 0.1608           0.2060   \n",
       "17488         0.0761                 0.0616           0.0789   \n",
       "17489         0.0761                 0.0616           0.0789   \n",
       "17490            NaN                    NaN              NaN   \n",
       "17491            NaN                    NaN              NaN   \n",
       "17492         0.0182                 0.0316           0.0312   \n",
       "17493         0.0182                 0.0316           0.0312   \n",
       "\n",
       "       NONLIVINGAPARTMENTS_MEDI  NONLIVINGAREA_MEDI  FONDKAPREMONT_MODE  \\\n",
       "0                        0.0311              0.0092    reg oper account   \n",
       "1                        0.0000              0.0062    reg oper account   \n",
       "2                           NaN                 NaN                 NaN   \n",
       "3                           NaN                 NaN                 NaN   \n",
       "4                           NaN                 NaN                 NaN   \n",
       "5                           NaN                 NaN                 NaN   \n",
       "6                           NaN                 NaN                 NaN   \n",
       "7                           NaN                 NaN                 NaN   \n",
       "8                           NaN                 NaN                 NaN   \n",
       "9                           NaN                 NaN                 NaN   \n",
       "10                          NaN                 NaN                 NaN   \n",
       "11                          NaN                 NaN                 NaN   \n",
       "12                          NaN                 NaN                 NaN   \n",
       "13                          NaN                 NaN                 NaN   \n",
       "14                          NaN                 NaN                 NaN   \n",
       "15                          NaN                 NaN                 NaN   \n",
       "16                          NaN                 NaN                 NaN   \n",
       "17                          NaN                 NaN                 NaN   \n",
       "18                          NaN                 NaN                 NaN   \n",
       "19                          NaN                 NaN                 NaN   \n",
       "20                          NaN                 NaN                 NaN   \n",
       "21                          NaN                 NaN                 NaN   \n",
       "22                          NaN                 NaN                 NaN   \n",
       "23                          NaN                 NaN                 NaN   \n",
       "24                          NaN                 NaN                 NaN   \n",
       "...                         ...                 ...                 ...   \n",
       "17469                    0.0000              0.0000    reg oper account   \n",
       "17470                       NaN                 NaN                 NaN   \n",
       "17471                       NaN                 NaN                 NaN   \n",
       "17472                    0.0194              0.0624    reg oper account   \n",
       "17473                    0.0194              0.0624    reg oper account   \n",
       "17474                       NaN                 NaN                 NaN   \n",
       "17475                       NaN                 NaN                 NaN   \n",
       "17476                       NaN                 NaN                 NaN   \n",
       "17477                       NaN                 NaN                 NaN   \n",
       "17478                       NaN              1.0000                 NaN   \n",
       "17479                       NaN              1.0000                 NaN   \n",
       "17480                    0.0078              0.0167    reg oper account   \n",
       "17481                    0.0078              0.0167    reg oper account   \n",
       "17482                    0.0194              0.0474    reg oper account   \n",
       "17483                    0.0194              0.0474    reg oper account   \n",
       "17484                       NaN                 NaN                 NaN   \n",
       "17485                       NaN                 NaN                 NaN   \n",
       "17486                    0.0155              0.0231    reg oper account   \n",
       "17487                    0.0155              0.0231    reg oper account   \n",
       "17488                    0.0000              0.0000    reg oper account   \n",
       "17489                    0.0000              0.0000    reg oper account   \n",
       "17490                       NaN                 NaN                 NaN   \n",
       "17491                       NaN                 NaN                 NaN   \n",
       "17492                    0.0039              0.0051       not specified   \n",
       "17493                    0.0039              0.0051       not specified   \n",
       "\n",
       "       HOUSETYPE_MODE  TOTALAREA_MODE  WALLSMATERIAL_MODE  \\\n",
       "0      block of flats          0.2230               Panel   \n",
       "1      block of flats          0.2131               Panel   \n",
       "2                 NaN             NaN                 NaN   \n",
       "3                 NaN             NaN                 NaN   \n",
       "4                 NaN             NaN                 NaN   \n",
       "5                 NaN             NaN                 NaN   \n",
       "6                 NaN             NaN                 NaN   \n",
       "7                 NaN             NaN                 NaN   \n",
       "8                 NaN             NaN                 NaN   \n",
       "9                 NaN             NaN                 NaN   \n",
       "10                NaN             NaN                 NaN   \n",
       "11                NaN             NaN                 NaN   \n",
       "12                NaN             NaN                 NaN   \n",
       "13                NaN             NaN                 NaN   \n",
       "14                NaN             NaN                 NaN   \n",
       "15                NaN             NaN                 NaN   \n",
       "16                NaN             NaN                 NaN   \n",
       "17                NaN             NaN                 NaN   \n",
       "18                NaN             NaN                 NaN   \n",
       "19                NaN             NaN                 NaN   \n",
       "20                NaN             NaN                 NaN   \n",
       "21                NaN             NaN                 NaN   \n",
       "22                NaN             NaN                 NaN   \n",
       "23                NaN             NaN                 NaN   \n",
       "24                NaN             NaN                 NaN   \n",
       "...               ...             ...                 ...   \n",
       "17469  block of flats          0.0648        Stone, brick   \n",
       "17470             NaN             NaN                 NaN   \n",
       "17471             NaN             NaN                 NaN   \n",
       "17472  block of flats          0.0521               Block   \n",
       "17473  block of flats          0.0521               Block   \n",
       "17474             NaN             NaN                 NaN   \n",
       "17475             NaN             NaN                 NaN   \n",
       "17476             NaN             NaN                 NaN   \n",
       "17477             NaN             NaN                 NaN   \n",
       "17478  block of flats          0.0589               Panel   \n",
       "17479  block of flats          0.0589               Panel   \n",
       "17480  block of flats          0.0260        Stone, brick   \n",
       "17481  block of flats          0.0260        Stone, brick   \n",
       "17482  block of flats          0.0397        Stone, brick   \n",
       "17483  block of flats          0.0397        Stone, brick   \n",
       "17484             NaN             NaN                 NaN   \n",
       "17485             NaN             NaN                 NaN   \n",
       "17486  block of flats          0.1849               Block   \n",
       "17487  block of flats          0.1849               Block   \n",
       "17488  block of flats          0.0673               Panel   \n",
       "17489  block of flats          0.0673               Panel   \n",
       "17490             NaN             NaN                 NaN   \n",
       "17491             NaN             NaN                 NaN   \n",
       "17492  block of flats          0.0272               Block   \n",
       "17493  block of flats          0.0272               Block   \n",
       "\n",
       "       EMERGENCYSTATE_MODE  OBS_30_CNT_SOCIAL_CIRCLE  \\\n",
       "0                       No                       0.0   \n",
       "1                       No                       0.0   \n",
       "2                      NaN                       2.0   \n",
       "3                      NaN                       1.0   \n",
       "4                      NaN                       0.0   \n",
       "5                      NaN                       3.0   \n",
       "6                      NaN                       2.0   \n",
       "7                      NaN                       3.0   \n",
       "8                      NaN                       0.0   \n",
       "9                      NaN                       0.0   \n",
       "10                     NaN                       3.0   \n",
       "11                     NaN                       2.0   \n",
       "12                     NaN                       0.0   \n",
       "13                     NaN                       1.0   \n",
       "14                     NaN                       0.0   \n",
       "15                     NaN                       1.0   \n",
       "16                     NaN                       1.0   \n",
       "17                     NaN                       0.0   \n",
       "18                     NaN                       9.0   \n",
       "19                     NaN                       1.0   \n",
       "20                     NaN                       0.0   \n",
       "21                     NaN                       0.0   \n",
       "22                     NaN                       0.0   \n",
       "23                     NaN                       4.0   \n",
       "24                     NaN                       2.0   \n",
       "...                    ...                       ...   \n",
       "17469                   No                       3.0   \n",
       "17470                  NaN                       3.0   \n",
       "17471                  NaN                       0.0   \n",
       "17472                   No                       1.0   \n",
       "17473                   No                       0.0   \n",
       "17474                  NaN                       0.0   \n",
       "17475                  NaN                       3.0   \n",
       "17476                  NaN                       0.0   \n",
       "17477                  NaN                       0.0   \n",
       "17478                   No                       1.0   \n",
       "17479                   No                       1.0   \n",
       "17480                   No                       4.0   \n",
       "17481                   No                       4.0   \n",
       "17482                   No                       9.0   \n",
       "17483                   No                       9.0   \n",
       "17484                  NaN                       0.0   \n",
       "17485                  NaN                       0.0   \n",
       "17486                   No                       0.0   \n",
       "17487                   No                       2.0   \n",
       "17488                   No                       2.0   \n",
       "17489                   No                       2.0   \n",
       "17490                  NaN                       1.0   \n",
       "17491                  NaN                       1.0   \n",
       "17492                   No                       0.0   \n",
       "17493                   No                       0.0   \n",
       "\n",
       "       DEF_30_CNT_SOCIAL_CIRCLE  OBS_60_CNT_SOCIAL_CIRCLE  \\\n",
       "0                           0.0                       0.0   \n",
       "1                           0.0                       0.0   \n",
       "2                           1.0                       2.0   \n",
       "3                           0.0                       1.0   \n",
       "4                           0.0                       0.0   \n",
       "5                           0.0                       3.0   \n",
       "6                           0.0                       2.0   \n",
       "7                           1.0                       3.0   \n",
       "8                           0.0                       0.0   \n",
       "9                           0.0                       0.0   \n",
       "10                          0.0                       3.0   \n",
       "11                          0.0                       2.0   \n",
       "12                          0.0                       0.0   \n",
       "13                          0.0                       1.0   \n",
       "14                          0.0                       0.0   \n",
       "15                          0.0                       0.0   \n",
       "16                          0.0                       1.0   \n",
       "17                          0.0                       0.0   \n",
       "18                          0.0                       9.0   \n",
       "19                          0.0                       1.0   \n",
       "20                          0.0                       0.0   \n",
       "21                          0.0                       0.0   \n",
       "22                          0.0                       0.0   \n",
       "23                          0.0                       3.0   \n",
       "24                          0.0                       2.0   \n",
       "...                         ...                       ...   \n",
       "17469                       2.0                       3.0   \n",
       "17470                       1.0                       3.0   \n",
       "17471                       0.0                       0.0   \n",
       "17472                       0.0                       1.0   \n",
       "17473                       0.0                       0.0   \n",
       "17474                       0.0                       0.0   \n",
       "17475                       0.0                       3.0   \n",
       "17476                       0.0                       0.0   \n",
       "17477                       0.0                       0.0   \n",
       "17478                       0.0                       1.0   \n",
       "17479                       0.0                       1.0   \n",
       "17480                       0.0                       4.0   \n",
       "17481                       0.0                       4.0   \n",
       "17482                       0.0                       9.0   \n",
       "17483                       0.0                       9.0   \n",
       "17484                       0.0                       0.0   \n",
       "17485                       0.0                       0.0   \n",
       "17486                       0.0                       0.0   \n",
       "17487                       0.0                       2.0   \n",
       "17488                       0.0                       2.0   \n",
       "17489                       0.0                       2.0   \n",
       "17490                       0.0                       1.0   \n",
       "17491                       0.0                       1.0   \n",
       "17492                       0.0                       0.0   \n",
       "17493                       0.0                       0.0   \n",
       "\n",
       "       DEF_60_CNT_SOCIAL_CIRCLE  DAYS_LAST_PHONE_CHANGE  FLAG_DOCUMENT_2  \\\n",
       "0                           0.0                  -975.0                0   \n",
       "1                           0.0                 -1080.0                0   \n",
       "2                           1.0                 -1012.0                0   \n",
       "3                           0.0                 -1300.0                0   \n",
       "4                           0.0                 -1642.0                0   \n",
       "5                           0.0                 -1875.0                0   \n",
       "6                           0.0                 -1235.0                0   \n",
       "7                           1.0                 -1334.0                0   \n",
       "8                           0.0                 -1833.0                0   \n",
       "9                           0.0                 -1996.0                0   \n",
       "10                          0.0                  -419.0                0   \n",
       "11                          0.0                 -1252.0                0   \n",
       "12                          0.0                  -703.0                0   \n",
       "13                          0.0                 -1990.0                0   \n",
       "14                          0.0                 -1513.0                0   \n",
       "15                          0.0                     0.0                0   \n",
       "16                          0.0                   -87.0                0   \n",
       "17                          0.0                  -683.0                0   \n",
       "18                          0.0                 -1233.0                0   \n",
       "19                          0.0                 -1727.0                0   \n",
       "20                          0.0                  -445.0                0   \n",
       "21                          0.0                 -2559.0                0   \n",
       "22                          0.0                 -2459.0                0   \n",
       "23                          0.0                  -435.0                0   \n",
       "24                          0.0                   -44.0                0   \n",
       "...                         ...                     ...              ...   \n",
       "17469                       2.0                  -137.0                0   \n",
       "17470                       0.0                  -747.0                0   \n",
       "17471                       0.0                     0.0                0   \n",
       "17472                       0.0                 -1536.0                0   \n",
       "17473                       0.0                 -1560.0                0   \n",
       "17474                       0.0                  -734.0                0   \n",
       "17475                       0.0                  -964.0                0   \n",
       "17476                       0.0                  -426.0                0   \n",
       "17477                       0.0                  -426.0                0   \n",
       "17478                       0.0                 -1740.0                0   \n",
       "17479                       0.0                 -1922.0                0   \n",
       "17480                       0.0                 -1553.0                0   \n",
       "17481                       0.0                 -1746.0                0   \n",
       "17482                       0.0                 -2416.0                0   \n",
       "17483                       0.0                 -2508.0                0   \n",
       "17484                       0.0                 -2440.0                0   \n",
       "17485                       0.0                 -2562.0                0   \n",
       "17486                       0.0                 -1424.0                0   \n",
       "17487                       0.0                 -1707.0                0   \n",
       "17488                       0.0                  -499.0                0   \n",
       "17489                       0.0                  -671.0                0   \n",
       "17490                       0.0                  -550.0                0   \n",
       "17491                       0.0                  -637.0                0   \n",
       "17492                       0.0                  -611.0                0   \n",
       "17493                       0.0                  -753.0                0   \n",
       "\n",
       "       FLAG_DOCUMENT_3  FLAG_DOCUMENT_4  FLAG_DOCUMENT_5  FLAG_DOCUMENT_6  \\\n",
       "0                    0                0                0                1   \n",
       "1                    0                0                0                1   \n",
       "2                    0                0                0                1   \n",
       "3                    0                0                0                1   \n",
       "4                    0                0                0                0   \n",
       "5                    1                0                0                0   \n",
       "6                    0                0                0                1   \n",
       "7                    1                0                0                0   \n",
       "8                    0                0                0                1   \n",
       "9                    0                0                0                1   \n",
       "10                   0                0                0                1   \n",
       "11                   1                0                0                0   \n",
       "12                   1                0                0                0   \n",
       "13                   0                0                0                1   \n",
       "14                   0                0                0                1   \n",
       "15                   1                0                0                0   \n",
       "16                   1                0                0                0   \n",
       "17                   0                0                0                1   \n",
       "18                   0                0                0                1   \n",
       "19                   1                0                0                0   \n",
       "20                   1                0                0                0   \n",
       "21                   0                0                0                1   \n",
       "22                   1                0                0                0   \n",
       "23                   0                0                0                1   \n",
       "24                   0                0                0                0   \n",
       "...                ...              ...              ...              ...   \n",
       "17469                1                0                0                0   \n",
       "17470                0                0                0                1   \n",
       "17471                0                0                1                0   \n",
       "17472                1                0                0                0   \n",
       "17473                1                0                0                0   \n",
       "17474                1                0                0                0   \n",
       "17475                1                0                0                0   \n",
       "17476                1                0                0                0   \n",
       "17477                0                0                0                0   \n",
       "17478                1                0                0                0   \n",
       "17479                0                0                0                0   \n",
       "17480                1                0                0                0   \n",
       "17481                1                0                0                0   \n",
       "17482                1                0                0                0   \n",
       "17483                1                0                0                0   \n",
       "17484                0                0                0                1   \n",
       "17485                0                0                0                1   \n",
       "17486                1                0                0                0   \n",
       "17487                1                0                0                0   \n",
       "17488                1                0                0                0   \n",
       "17489                0                0                0                0   \n",
       "17490                1                0                0                0   \n",
       "17491                1                0                0                0   \n",
       "17492                0                0                0                0   \n",
       "17493                0                0                0                0   \n",
       "\n",
       "       FLAG_DOCUMENT_7  FLAG_DOCUMENT_8  FLAG_DOCUMENT_9  FLAG_DOCUMENT_10  \\\n",
       "0                    0                0                0                 0   \n",
       "1                    0                0                0                 0   \n",
       "2                    0                0                0                 0   \n",
       "3                    0                0                0                 0   \n",
       "4                    0                0                0                 0   \n",
       "5                    0                0                0                 0   \n",
       "6                    0                0                0                 0   \n",
       "7                    0                0                0                 0   \n",
       "8                    0                0                0                 0   \n",
       "9                    0                0                0                 0   \n",
       "10                   0                0                0                 0   \n",
       "11                   0                0                0                 0   \n",
       "12                   0                0                0                 0   \n",
       "13                   0                0                0                 0   \n",
       "14                   0                0                0                 0   \n",
       "15                   0                0                0                 0   \n",
       "16                   0                0                0                 0   \n",
       "17                   0                0                0                 0   \n",
       "18                   0                0                0                 0   \n",
       "19                   0                0                0                 0   \n",
       "20                   0                0                0                 0   \n",
       "21                   0                0                0                 0   \n",
       "22                   0                0                0                 0   \n",
       "23                   0                0                0                 0   \n",
       "24                   0                0                0                 0   \n",
       "...                ...              ...              ...               ...   \n",
       "17469                0                0                0                 0   \n",
       "17470                0                0                0                 0   \n",
       "17471                0                0                0                 0   \n",
       "17472                0                0                0                 0   \n",
       "17473                0                0                0                 0   \n",
       "17474                0                0                0                 0   \n",
       "17475                0                0                0                 0   \n",
       "17476                0                0                0                 0   \n",
       "17477                0                0                0                 0   \n",
       "17478                0                0                0                 0   \n",
       "17479                0                0                0                 0   \n",
       "17480                0                0                0                 0   \n",
       "17481                0                0                0                 0   \n",
       "17482                0                0                0                 0   \n",
       "17483                0                0                0                 0   \n",
       "17484                0                0                0                 0   \n",
       "17485                0                0                0                 0   \n",
       "17486                0                0                0                 0   \n",
       "17487                0                0                0                 0   \n",
       "17488                0                0                0                 0   \n",
       "17489                0                0                0                 0   \n",
       "17490                0                0                0                 0   \n",
       "17491                0                0                0                 0   \n",
       "17492                0                1                0                 0   \n",
       "17493                0                1                0                 0   \n",
       "\n",
       "       FLAG_DOCUMENT_11  FLAG_DOCUMENT_12  FLAG_DOCUMENT_13  FLAG_DOCUMENT_14  \\\n",
       "0                     0                 0                 0                 0   \n",
       "1                     0                 0                 0                 0   \n",
       "2                     0                 0                 0                 0   \n",
       "3                     0                 0                 0                 0   \n",
       "4                     0                 0                 0                 0   \n",
       "5                     0                 0                 0                 0   \n",
       "6                     0                 0                 0                 0   \n",
       "7                     0                 0                 0                 0   \n",
       "8                     0                 0                 0                 0   \n",
       "9                     0                 0                 0                 0   \n",
       "10                    0                 0                 0                 0   \n",
       "11                    0                 0                 0                 0   \n",
       "12                    0                 0                 0                 0   \n",
       "13                    0                 0                 0                 0   \n",
       "14                    0                 0                 0                 0   \n",
       "15                    0                 0                 0                 0   \n",
       "16                    0                 0                 0                 0   \n",
       "17                    0                 0                 0                 0   \n",
       "18                    0                 0                 0                 0   \n",
       "19                    0                 0                 0                 0   \n",
       "20                    0                 0                 0                 0   \n",
       "21                    0                 0                 0                 0   \n",
       "22                    0                 0                 0                 0   \n",
       "23                    0                 0                 0                 0   \n",
       "24                    0                 0                 0                 0   \n",
       "...                 ...               ...               ...               ...   \n",
       "17469                 0                 0                 0                 0   \n",
       "17470                 0                 0                 0                 0   \n",
       "17471                 0                 0                 0                 0   \n",
       "17472                 0                 0                 0                 0   \n",
       "17473                 0                 0                 0                 0   \n",
       "17474                 0                 0                 0                 0   \n",
       "17475                 0                 0                 0                 0   \n",
       "17476                 0                 0                 0                 0   \n",
       "17477                 0                 0                 0                 0   \n",
       "17478                 0                 0                 0                 0   \n",
       "17479                 0                 0                 0                 0   \n",
       "17480                 0                 0                 0                 0   \n",
       "17481                 0                 0                 0                 0   \n",
       "17482                 0                 0                 0                 0   \n",
       "17483                 0                 0                 0                 0   \n",
       "17484                 0                 0                 0                 0   \n",
       "17485                 0                 0                 0                 0   \n",
       "17486                 0                 0                 0                 0   \n",
       "17487                 0                 0                 0                 0   \n",
       "17488                 0                 0                 0                 0   \n",
       "17489                 0                 0                 0                 0   \n",
       "17490                 0                 0                 0                 0   \n",
       "17491                 0                 0                 0                 0   \n",
       "17492                 0                 0                 0                 0   \n",
       "17493                 0                 0                 0                 0   \n",
       "\n",
       "       FLAG_DOCUMENT_15  FLAG_DOCUMENT_16  FLAG_DOCUMENT_17  FLAG_DOCUMENT_18  \\\n",
       "0                     0                 0                 0                 0   \n",
       "1                     0                 0                 0                 0   \n",
       "2                     0                 0                 0                 0   \n",
       "3                     0                 0                 0                 0   \n",
       "4                     0                 0                 0                 0   \n",
       "5                     0                 0                 0                 0   \n",
       "6                     0                 0                 0                 0   \n",
       "7                     0                 0                 0                 0   \n",
       "8                     0                 0                 0                 0   \n",
       "9                     0                 0                 0                 0   \n",
       "10                    0                 0                 0                 0   \n",
       "11                    0                 0                 0                 0   \n",
       "12                    0                 0                 0                 0   \n",
       "13                    0                 0                 0                 0   \n",
       "14                    0                 0                 0                 0   \n",
       "15                    0                 0                 0                 0   \n",
       "16                    0                 0                 0                 0   \n",
       "17                    0                 0                 0                 0   \n",
       "18                    0                 0                 0                 0   \n",
       "19                    0                 0                 0                 0   \n",
       "20                    0                 0                 0                 0   \n",
       "21                    0                 0                 0                 0   \n",
       "22                    0                 0                 0                 0   \n",
       "23                    0                 0                 0                 0   \n",
       "24                    0                 0                 0                 0   \n",
       "...                 ...               ...               ...               ...   \n",
       "17469                 0                 0                 0                 0   \n",
       "17470                 0                 0                 0                 0   \n",
       "17471                 0                 0                 0                 0   \n",
       "17472                 0                 0                 0                 0   \n",
       "17473                 0                 0                 0                 0   \n",
       "17474                 0                 0                 0                 0   \n",
       "17475                 0                 0                 0                 0   \n",
       "17476                 0                 0                 0                 0   \n",
       "17477                 0                 0                 0                 0   \n",
       "17478                 0                 0                 0                 0   \n",
       "17479                 0                 0                 0                 0   \n",
       "17480                 0                 0                 0                 0   \n",
       "17481                 0                 0                 0                 0   \n",
       "17482                 0                 0                 0                 0   \n",
       "17483                 0                 0                 0                 0   \n",
       "17484                 0                 0                 0                 0   \n",
       "17485                 0                 0                 0                 0   \n",
       "17486                 0                 0                 0                 0   \n",
       "17487                 0                 0                 0                 0   \n",
       "17488                 0                 0                 0                 0   \n",
       "17489                 0                 0                 0                 0   \n",
       "17490                 0                 0                 0                 0   \n",
       "17491                 0                 0                 0                 0   \n",
       "17492                 0                 0                 0                 0   \n",
       "17493                 0                 0                 0                 0   \n",
       "\n",
       "      FLAG_DOCUMENT_19 FLAG_DOCUMENT_20  FLAG_DOCUMENT_21  \\\n",
       "0                    0                0                 0   \n",
       "1                    0                0                 0   \n",
       "2                    0                0                 0   \n",
       "3                    0                0                 0   \n",
       "4                    0                0                 0   \n",
       "5                    0                0                 0   \n",
       "6                    0                0                 0   \n",
       "7                    0                0                 0   \n",
       "8                    0                0                 0   \n",
       "9                    0                0                 0   \n",
       "10                   0                0                 0   \n",
       "11                   0                0                 0   \n",
       "12                   0                0                 0   \n",
       "13                   0                0                 0   \n",
       "14                   0                0                 0   \n",
       "15                   0                0                 0   \n",
       "16                   0                0                 0   \n",
       "17                   0                0                 0   \n",
       "18                   0                0                 0   \n",
       "19                   0                0                 0   \n",
       "20                   0                0                 0   \n",
       "21                   0                0                 0   \n",
       "22                   0                0                 0   \n",
       "23                   0                0                 0   \n",
       "24                   0                0                 0   \n",
       "...                ...              ...               ...   \n",
       "17469                0                0                 0   \n",
       "17470                0                0                 0   \n",
       "17471                0                0                 0   \n",
       "17472                0                0                 0   \n",
       "17473                0                0                 0   \n",
       "17474                0                0                 0   \n",
       "17475                0                0                 0   \n",
       "17476                0                0                 0   \n",
       "17477                0                0                 0   \n",
       "17478                0                0                 0   \n",
       "17479                0                0                 0   \n",
       "17480                0                0                 0   \n",
       "17481                0                0                 0   \n",
       "17482                0                0                 0   \n",
       "17483                0                0                 0   \n",
       "17484                0                0                 0   \n",
       "17485                0                0                 0   \n",
       "17486                0                0                 0   \n",
       "17487                0                0                 0   \n",
       "17488                0                0                 0   \n",
       "17489                0                0                 0   \n",
       "17490                0                0                 0   \n",
       "17491                0                0                 0   \n",
       "17492                0                0                 0   \n",
       "17493                0                0                 0   \n",
       "\n",
       "      AMT_REQ_CREDIT_BUREAU_HOUR AMT_REQ_CREDIT_BUREAU_DAY  \\\n",
       "0                            0.0                       0.0   \n",
       "1                            0.0                       0.0   \n",
       "2                            0.0                       0.0   \n",
       "3                            0.0                       0.0   \n",
       "4                            0.0                       0.0   \n",
       "5                            0.0                       0.0   \n",
       "6                            0.0                       0.0   \n",
       "7                            0.0                       0.0   \n",
       "8                            0.0                       0.0   \n",
       "9                            0.0                       0.0   \n",
       "10                           0.0                       0.0   \n",
       "11                           0.0                       0.0   \n",
       "12                           0.0                       0.0   \n",
       "13                           0.0                       0.0   \n",
       "14                           0.0                       0.0   \n",
       "15                           0.0                       0.0   \n",
       "16                           0.0                       0.0   \n",
       "17                           0.0                       0.0   \n",
       "18                           0.0                       0.0   \n",
       "19                           0.0                       0.0   \n",
       "20                           0.0                       0.0   \n",
       "21                           0.0                       0.0   \n",
       "22                           0.0                       0.0   \n",
       "23                           0.0                       0.0   \n",
       "24                           0.0                       0.0   \n",
       "...                          ...                       ...   \n",
       "17469                        0.0                       0.0   \n",
       "17470                        0.0                       0.0   \n",
       "17471                        0.0                       0.0   \n",
       "17472                        0.0                       0.0   \n",
       "17473                        0.0                       0.0   \n",
       "17474                        0.0                       0.0   \n",
       "17475                        0.0                       0.0   \n",
       "17476                        0.0                       0.0   \n",
       "17477                        0.0                       0.0   \n",
       "17478                        0.0                       0.0   \n",
       "17479                        0.0                       0.0   \n",
       "17480                        0.0                       0.0   \n",
       "17481                        0.0                       0.0   \n",
       "17482                        0.0                       0.0   \n",
       "17483                        0.0                       0.0   \n",
       "17484                        0.0                       0.0   \n",
       "17485                        0.0                       0.0   \n",
       "17486                        0.0                       0.0   \n",
       "17487                        NaN                       NaN   \n",
       "17488                        0.0                       0.0   \n",
       "17489                        0.0                       0.0   \n",
       "17490                        0.0                       0.0   \n",
       "17491                        0.0                       0.0   \n",
       "17492                        0.0                       0.0   \n",
       "17493                        0.0                       0.0   \n",
       "\n",
       "       AMT_REQ_CREDIT_BUREAU_WEEK  AMT_REQ_CREDIT_BUREAU_MON  \\\n",
       "0                             0.0                        0.0   \n",
       "1                             0.0                        0.0   \n",
       "2                             0.0                        0.0   \n",
       "3                             0.0                        0.0   \n",
       "4                             0.0                        0.0   \n",
       "5                             0.0                        0.0   \n",
       "6                             0.0                        0.0   \n",
       "7                             0.0                        0.0   \n",
       "8                             0.0                        0.0   \n",
       "9                             0.0                        0.0   \n",
       "10                            0.0                        1.0   \n",
       "11                            0.0                        1.0   \n",
       "12                            0.0                        0.0   \n",
       "13                            0.0                        0.0   \n",
       "14                            0.0                        0.0   \n",
       "15                            0.0                        0.0   \n",
       "16                            0.0                        0.0   \n",
       "17                            0.0                        0.0   \n",
       "18                            0.0                        0.0   \n",
       "19                            0.0                        1.0   \n",
       "20                            0.0                        1.0   \n",
       "21                            0.0                        0.0   \n",
       "22                            0.0                        0.0   \n",
       "23                            0.0                        0.0   \n",
       "24                            0.0                        0.0   \n",
       "...                           ...                        ...   \n",
       "17469                         0.0                        0.0   \n",
       "17470                         0.0                        0.0   \n",
       "17471                         0.0                        0.0   \n",
       "17472                         0.0                        0.0   \n",
       "17473                         0.0                        0.0   \n",
       "17474                         0.0                        0.0   \n",
       "17475                         0.0                        0.0   \n",
       "17476                         0.0                        0.0   \n",
       "17477                         0.0                        0.0   \n",
       "17478                         0.0                        0.0   \n",
       "17479                         0.0                        0.0   \n",
       "17480                         0.0                        0.0   \n",
       "17481                         0.0                        0.0   \n",
       "17482                         0.0                        0.0   \n",
       "17483                         0.0                        0.0   \n",
       "17484                         0.0                        0.0   \n",
       "17485                         0.0                        0.0   \n",
       "17486                         0.0                        0.0   \n",
       "17487                         NaN                        NaN   \n",
       "17488                         0.0                        0.0   \n",
       "17489                         0.0                        0.0   \n",
       "17490                         0.0                        2.0   \n",
       "17491                         0.0                        0.0   \n",
       "17492                         0.0                        0.0   \n",
       "17493                         0.0                        0.0   \n",
       "\n",
       "       AMT_REQ_CREDIT_BUREAU_QRT  AMT_REQ_CREDIT_BUREAU_YEAR  is_train  seq  \n",
       "0                            1.0                         5.0         1    0  \n",
       "1                            1.0                         8.0         1    1  \n",
       "2                            2.0                         3.0         1    0  \n",
       "3                            0.0                         4.0         0    1  \n",
       "4                            0.0                         0.0         1    0  \n",
       "5                            0.0                         0.0         0    1  \n",
       "6                            0.0                         0.0         1    0  \n",
       "7                            0.0                         1.0         0    1  \n",
       "8                            0.0                         2.0         1    0  \n",
       "9                            0.0                         4.0         1    1  \n",
       "10                           0.0                         1.0         1    0  \n",
       "11                           0.0                         9.0         0    1  \n",
       "12                           1.0                         3.0         1    0  \n",
       "13                           0.0                         3.0         0    1  \n",
       "14                           0.0                         5.0         1    2  \n",
       "15                           0.0                         5.0         1    0  \n",
       "16                           2.0                         4.0         1    1  \n",
       "17                           0.0                         3.0         0    0  \n",
       "18                           0.0                         4.0         1    1  \n",
       "19                           0.0                         3.0         1    0  \n",
       "20                           1.0                         6.0         1    1  \n",
       "21                           0.0                         5.0         0    2  \n",
       "22                           1.0                         3.0         1    0  \n",
       "23                           0.0                         3.0         1    1  \n",
       "24                           0.0                         3.0         1    0  \n",
       "...                          ...                         ...       ...  ...  \n",
       "17469                        0.0                         4.0         0    2  \n",
       "17470                        0.0                         2.0         1    0  \n",
       "17471                        1.0                         3.0         0    1  \n",
       "17472                        0.0                         3.0         1    0  \n",
       "17473                        0.0                         3.0         1    1  \n",
       "17474                        0.0                         1.0         1    0  \n",
       "17475                        1.0                         3.0         0    1  \n",
       "17476                        0.0                         3.0         1    0  \n",
       "17477                        0.0                         3.0         1    1  \n",
       "17478                        0.0                         1.0         1    0  \n",
       "17479                        0.0                         4.0         1    1  \n",
       "17480                        0.0                         4.0         1    0  \n",
       "17481                        0.0                         6.0         1    1  \n",
       "17482                        3.0                         5.0         1    0  \n",
       "17483                        4.0                         8.0         1    1  \n",
       "17484                        0.0                         1.0         1    0  \n",
       "17485                        0.0                         3.0         1    1  \n",
       "17486                        0.0                         3.0         1    0  \n",
       "17487                        NaN                         NaN         0    1  \n",
       "17488                        1.0                         2.0         1    0  \n",
       "17489                        0.0                         3.0         0    1  \n",
       "17490                        0.0                         1.0         1    0  \n",
       "17491                        2.0                         1.0         1    1  \n",
       "17492                        0.0                         1.0         1    0  \n",
       "17493                        0.0                         3.0         1    1  \n",
       "\n",
       "[17494 rows x 125 columns]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dup = user_id[user_id.duplicated('user_id', False)]\n",
    "cnt = dup.groupby('user_id').size()\n",
    "cnt.name = 'dup_cnt'\n",
    "cnt = cnt.reset_index()\n",
    "cnt['dup_id'] = range(cnt.shape[0])\n",
    "\n",
    "dup = pd.merge(dup, cnt, on='user_id', how='left')\n",
    "dup = pd.merge(dup, trte, on='SK_ID_CURR', how='left')\n",
    "dup.sort_values(['user_id', 'DAYS_BIRTH'], ascending=[True, False], inplace=True)\n",
    "\n",
    "dup['seq'] = 1\n",
    "dup['seq'] = dup.groupby('user_id').seq.cumsum()-1\n",
    "\n",
    "col = train.columns.tolist() + [c for c in dup.columns if c not in train.columns]\n",
    "for c in ['dup_id', 'dup_cnt', 'user_id']:\n",
    "    col.remove(c)\n",
    "col = ['user_id'] + col\n",
    "\n",
    "dup = dup[col].reset_index(drop=True)\n",
    "dup"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Forwards"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.346479Z",
     "start_time": "2018-08-28T21:13:22.281657Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>user_id</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>TARGET</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>CODE_GENDER</th>\n",
       "      <th>FLAG_OWN_CAR</th>\n",
       "      <th>FLAG_OWN_REALTY</th>\n",
       "      <th>CNT_CHILDREN</th>\n",
       "      <th>AMT_INCOME_TOTAL</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_INCOME_TYPE</th>\n",
       "      <th>NAME_EDUCATION_TYPE</th>\n",
       "      <th>NAME_FAMILY_STATUS</th>\n",
       "      <th>NAME_HOUSING_TYPE</th>\n",
       "      <th>REGION_POPULATION_RELATIVE</th>\n",
       "      <th>DAYS_BIRTH</th>\n",
       "      <th>DAYS_EMPLOYED</th>\n",
       "      <th>DAYS_REGISTRATION</th>\n",
       "      <th>DAYS_ID_PUBLISH</th>\n",
       "      <th>OWN_CAR_AGE</th>\n",
       "      <th>FLAG_MOBIL</th>\n",
       "      <th>FLAG_EMP_PHONE</th>\n",
       "      <th>FLAG_WORK_PHONE</th>\n",
       "      <th>FLAG_CONT_MOBILE</th>\n",
       "      <th>FLAG_PHONE</th>\n",
       "      <th>FLAG_EMAIL</th>\n",
       "      <th>OCCUPATION_TYPE</th>\n",
       "      <th>CNT_FAM_MEMBERS</th>\n",
       "      <th>REGION_RATING_CLIENT</th>\n",
       "      <th>REGION_RATING_CLIENT_W_CITY</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>REG_REGION_NOT_LIVE_REGION</th>\n",
       "      <th>REG_REGION_NOT_WORK_REGION</th>\n",
       "      <th>LIVE_REGION_NOT_WORK_REGION</th>\n",
       "      <th>REG_CITY_NOT_LIVE_CITY</th>\n",
       "      <th>REG_CITY_NOT_WORK_CITY</th>\n",
       "      <th>LIVE_CITY_NOT_WORK_CITY</th>\n",
       "      <th>ORGANIZATION_TYPE</th>\n",
       "      <th>EXT_SOURCE_1</th>\n",
       "      <th>EXT_SOURCE_2</th>\n",
       "      <th>EXT_SOURCE_3</th>\n",
       "      <th>APARTMENTS_AVG</th>\n",
       "      <th>BASEMENTAREA_AVG</th>\n",
       "      <th>YEARS_BEGINEXPLUATATION_AVG</th>\n",
       "      <th>YEARS_BUILD_AVG</th>\n",
       "      <th>...</th>\n",
       "      <th>YEARS_BUILD_MEDI</th>\n",
       "      <th>COMMONAREA_MEDI</th>\n",
       "      <th>ELEVATORS_MEDI</th>\n",
       "      <th>ENTRANCES_MEDI</th>\n",
       "      <th>FLOORSMAX_MEDI</th>\n",
       "      <th>FLOORSMIN_MEDI</th>\n",
       "      <th>LANDAREA_MEDI</th>\n",
       "      <th>LIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>LIVINGAREA_MEDI</th>\n",
       "      <th>NONLIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>NONLIVINGAREA_MEDI</th>\n",
       "      <th>FONDKAPREMONT_MODE</th>\n",
       "      <th>HOUSETYPE_MODE</th>\n",
       "      <th>TOTALAREA_MODE</th>\n",
       "      <th>WALLSMATERIAL_MODE</th>\n",
       "      <th>EMERGENCYSTATE_MODE</th>\n",
       "      <th>OBS_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>OBS_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DAYS_LAST_PHONE_CHANGE</th>\n",
       "      <th>FLAG_DOCUMENT_2</th>\n",
       "      <th>FLAG_DOCUMENT_3</th>\n",
       "      <th>FLAG_DOCUMENT_4</th>\n",
       "      <th>FLAG_DOCUMENT_5</th>\n",
       "      <th>FLAG_DOCUMENT_6</th>\n",
       "      <th>FLAG_DOCUMENT_7</th>\n",
       "      <th>FLAG_DOCUMENT_8</th>\n",
       "      <th>FLAG_DOCUMENT_9</th>\n",
       "      <th>FLAG_DOCUMENT_10</th>\n",
       "      <th>FLAG_DOCUMENT_11</th>\n",
       "      <th>FLAG_DOCUMENT_12</th>\n",
       "      <th>FLAG_DOCUMENT_13</th>\n",
       "      <th>FLAG_DOCUMENT_14</th>\n",
       "      <th>FLAG_DOCUMENT_15</th>\n",
       "      <th>FLAG_DOCUMENT_16</th>\n",
       "      <th>FLAG_DOCUMENT_17</th>\n",
       "      <th>FLAG_DOCUMENT_18</th>\n",
       "      <th>FLAG_DOCUMENT_19</th>\n",
       "      <th>FLAG_DOCUMENT_20</th>\n",
       "      <th>FLAG_DOCUMENT_21</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_HOUR</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_DAY</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_WEEK</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_MON</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_QRT</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_YEAR</th>\n",
       "      <th>is_train</th>\n",
       "      <th>seq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1132</th>\n",
       "      <td>4402.0</td>\n",
       "      <td>100041</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>44509.5</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.008575</td>\n",
       "      <td>-12158</td>\n",
       "      <td>-1275</td>\n",
       "      <td>-6265.0</td>\n",
       "      <td>-2009</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>19</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.663158</td>\n",
       "      <td>0.678568</td>\n",
       "      <td>0.0948</td>\n",
       "      <td>0.0792</td>\n",
       "      <td>0.9861</td>\n",
       "      <td>0.8096</td>\n",
       "      <td>...</td>\n",
       "      <td>0.8121</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.1724</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0903</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0592</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0749</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1285.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 125 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      user_id  SK_ID_CURR  TARGET NAME_CONTRACT_TYPE CODE_GENDER FLAG_OWN_CAR  \\\n",
       "1132   4402.0      100041     0.0         Cash loans           F            N   \n",
       "\n",
       "     FLAG_OWN_REALTY  CNT_CHILDREN  AMT_INCOME_TOTAL  AMT_CREDIT  AMT_ANNUITY  \\\n",
       "1132               N             0          112500.0    450000.0      44509.5   \n",
       "\n",
       "      AMT_GOODS_PRICE NAME_TYPE_SUITE NAME_INCOME_TYPE NAME_EDUCATION_TYPE  \\\n",
       "1132         450000.0   Unaccompanied          Working    Higher education   \n",
       "\n",
       "     NAME_FAMILY_STATUS  NAME_HOUSING_TYPE  REGION_POPULATION_RELATIVE  \\\n",
       "1132            Married  House / apartment                    0.008575   \n",
       "\n",
       "      DAYS_BIRTH  DAYS_EMPLOYED  DAYS_REGISTRATION  DAYS_ID_PUBLISH  \\\n",
       "1132      -12158          -1275            -6265.0            -2009   \n",
       "\n",
       "      OWN_CAR_AGE  FLAG_MOBIL  FLAG_EMP_PHONE  FLAG_WORK_PHONE  \\\n",
       "1132          NaN           1               1                1   \n",
       "\n",
       "      FLAG_CONT_MOBILE  FLAG_PHONE  FLAG_EMAIL OCCUPATION_TYPE  \\\n",
       "1132                 1           1           0     Sales staff   \n",
       "\n",
       "      CNT_FAM_MEMBERS  REGION_RATING_CLIENT  REGION_RATING_CLIENT_W_CITY  \\\n",
       "1132              2.0                     2                            2   \n",
       "\n",
       "     WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "1132                     MONDAY                       19   \n",
       "\n",
       "      REG_REGION_NOT_LIVE_REGION  REG_REGION_NOT_WORK_REGION  \\\n",
       "1132                           0                           0   \n",
       "\n",
       "      LIVE_REGION_NOT_WORK_REGION  REG_CITY_NOT_LIVE_CITY  \\\n",
       "1132                            0                       0   \n",
       "\n",
       "      REG_CITY_NOT_WORK_CITY  LIVE_CITY_NOT_WORK_CITY ORGANIZATION_TYPE  \\\n",
       "1132                       0                        0     Self-employed   \n",
       "\n",
       "      EXT_SOURCE_1  EXT_SOURCE_2  EXT_SOURCE_3  APARTMENTS_AVG  \\\n",
       "1132           NaN      0.663158      0.678568          0.0948   \n",
       "\n",
       "      BASEMENTAREA_AVG  YEARS_BEGINEXPLUATATION_AVG  YEARS_BUILD_AVG ...   \\\n",
       "1132            0.0792                       0.9861           0.8096 ...    \n",
       "\n",
       "      YEARS_BUILD_MEDI  COMMONAREA_MEDI  ELEVATORS_MEDI  ENTRANCES_MEDI  \\\n",
       "1132            0.8121              NaN             0.0          0.1724   \n",
       "\n",
       "      FLOORSMAX_MEDI  FLOORSMIN_MEDI  LANDAREA_MEDI  LIVINGAPARTMENTS_MEDI  \\\n",
       "1132          0.1667             NaN         0.0903                    NaN   \n",
       "\n",
       "      LIVINGAREA_MEDI  NONLIVINGAPARTMENTS_MEDI  NONLIVINGAREA_MEDI  \\\n",
       "1132           0.0592                       NaN                 NaN   \n",
       "\n",
       "      FONDKAPREMONT_MODE  HOUSETYPE_MODE  TOTALAREA_MODE  WALLSMATERIAL_MODE  \\\n",
       "1132    reg oper account  block of flats          0.0749        Stone, brick   \n",
       "\n",
       "      EMERGENCYSTATE_MODE  OBS_30_CNT_SOCIAL_CIRCLE  DEF_30_CNT_SOCIAL_CIRCLE  \\\n",
       "1132                   No                       0.0                       0.0   \n",
       "\n",
       "      OBS_60_CNT_SOCIAL_CIRCLE  DEF_60_CNT_SOCIAL_CIRCLE  \\\n",
       "1132                       0.0                       0.0   \n",
       "\n",
       "      DAYS_LAST_PHONE_CHANGE  FLAG_DOCUMENT_2  FLAG_DOCUMENT_3  \\\n",
       "1132                 -1285.0                0                1   \n",
       "\n",
       "      FLAG_DOCUMENT_4  FLAG_DOCUMENT_5  FLAG_DOCUMENT_6  FLAG_DOCUMENT_7  \\\n",
       "1132                0                0                0                0   \n",
       "\n",
       "      FLAG_DOCUMENT_8  FLAG_DOCUMENT_9  FLAG_DOCUMENT_10  FLAG_DOCUMENT_11  \\\n",
       "1132                0                0                 0                 0   \n",
       "\n",
       "      FLAG_DOCUMENT_12  FLAG_DOCUMENT_13  FLAG_DOCUMENT_14  FLAG_DOCUMENT_15  \\\n",
       "1132                 0                 0                 0                 0   \n",
       "\n",
       "      FLAG_DOCUMENT_16  FLAG_DOCUMENT_17  FLAG_DOCUMENT_18 FLAG_DOCUMENT_19  \\\n",
       "1132                 0                 0                 0                0   \n",
       "\n",
       "     FLAG_DOCUMENT_20  FLAG_DOCUMENT_21 AMT_REQ_CREDIT_BUREAU_HOUR  \\\n",
       "1132                0                 0                        0.0   \n",
       "\n",
       "     AMT_REQ_CREDIT_BUREAU_DAY  AMT_REQ_CREDIT_BUREAU_WEEK  \\\n",
       "1132                       0.0                         0.0   \n",
       "\n",
       "      AMT_REQ_CREDIT_BUREAU_MON  AMT_REQ_CREDIT_BUREAU_QRT  \\\n",
       "1132                        0.0                        0.0   \n",
       "\n",
       "      AMT_REQ_CREDIT_BUREAU_YEAR  is_train  seq  \n",
       "1132                         0.0         1    0  \n",
       "\n",
       "[1 rows x 125 columns]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dup[dup.SK_ID_CURR==100041]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.409282Z",
     "start_time": "2018-08-28T21:13:22.347989Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>user_id</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>TARGET</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>CODE_GENDER</th>\n",
       "      <th>FLAG_OWN_CAR</th>\n",
       "      <th>FLAG_OWN_REALTY</th>\n",
       "      <th>CNT_CHILDREN</th>\n",
       "      <th>AMT_INCOME_TOTAL</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_INCOME_TYPE</th>\n",
       "      <th>NAME_EDUCATION_TYPE</th>\n",
       "      <th>NAME_FAMILY_STATUS</th>\n",
       "      <th>NAME_HOUSING_TYPE</th>\n",
       "      <th>REGION_POPULATION_RELATIVE</th>\n",
       "      <th>DAYS_BIRTH</th>\n",
       "      <th>DAYS_EMPLOYED</th>\n",
       "      <th>DAYS_REGISTRATION</th>\n",
       "      <th>DAYS_ID_PUBLISH</th>\n",
       "      <th>OWN_CAR_AGE</th>\n",
       "      <th>FLAG_MOBIL</th>\n",
       "      <th>FLAG_EMP_PHONE</th>\n",
       "      <th>FLAG_WORK_PHONE</th>\n",
       "      <th>FLAG_CONT_MOBILE</th>\n",
       "      <th>FLAG_PHONE</th>\n",
       "      <th>FLAG_EMAIL</th>\n",
       "      <th>OCCUPATION_TYPE</th>\n",
       "      <th>CNT_FAM_MEMBERS</th>\n",
       "      <th>REGION_RATING_CLIENT</th>\n",
       "      <th>REGION_RATING_CLIENT_W_CITY</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>REG_REGION_NOT_LIVE_REGION</th>\n",
       "      <th>REG_REGION_NOT_WORK_REGION</th>\n",
       "      <th>LIVE_REGION_NOT_WORK_REGION</th>\n",
       "      <th>REG_CITY_NOT_LIVE_CITY</th>\n",
       "      <th>REG_CITY_NOT_WORK_CITY</th>\n",
       "      <th>LIVE_CITY_NOT_WORK_CITY</th>\n",
       "      <th>ORGANIZATION_TYPE</th>\n",
       "      <th>EXT_SOURCE_1</th>\n",
       "      <th>EXT_SOURCE_2</th>\n",
       "      <th>EXT_SOURCE_3</th>\n",
       "      <th>APARTMENTS_AVG</th>\n",
       "      <th>BASEMENTAREA_AVG</th>\n",
       "      <th>YEARS_BEGINEXPLUATATION_AVG</th>\n",
       "      <th>YEARS_BUILD_AVG</th>\n",
       "      <th>...</th>\n",
       "      <th>YEARS_BUILD_MEDI</th>\n",
       "      <th>COMMONAREA_MEDI</th>\n",
       "      <th>ELEVATORS_MEDI</th>\n",
       "      <th>ENTRANCES_MEDI</th>\n",
       "      <th>FLOORSMAX_MEDI</th>\n",
       "      <th>FLOORSMIN_MEDI</th>\n",
       "      <th>LANDAREA_MEDI</th>\n",
       "      <th>LIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>LIVINGAREA_MEDI</th>\n",
       "      <th>NONLIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>NONLIVINGAREA_MEDI</th>\n",
       "      <th>FONDKAPREMONT_MODE</th>\n",
       "      <th>HOUSETYPE_MODE</th>\n",
       "      <th>TOTALAREA_MODE</th>\n",
       "      <th>WALLSMATERIAL_MODE</th>\n",
       "      <th>EMERGENCYSTATE_MODE</th>\n",
       "      <th>OBS_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>OBS_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DAYS_LAST_PHONE_CHANGE</th>\n",
       "      <th>FLAG_DOCUMENT_2</th>\n",
       "      <th>FLAG_DOCUMENT_3</th>\n",
       "      <th>FLAG_DOCUMENT_4</th>\n",
       "      <th>FLAG_DOCUMENT_5</th>\n",
       "      <th>FLAG_DOCUMENT_6</th>\n",
       "      <th>FLAG_DOCUMENT_7</th>\n",
       "      <th>FLAG_DOCUMENT_8</th>\n",
       "      <th>FLAG_DOCUMENT_9</th>\n",
       "      <th>FLAG_DOCUMENT_10</th>\n",
       "      <th>FLAG_DOCUMENT_11</th>\n",
       "      <th>FLAG_DOCUMENT_12</th>\n",
       "      <th>FLAG_DOCUMENT_13</th>\n",
       "      <th>FLAG_DOCUMENT_14</th>\n",
       "      <th>FLAG_DOCUMENT_15</th>\n",
       "      <th>FLAG_DOCUMENT_16</th>\n",
       "      <th>FLAG_DOCUMENT_17</th>\n",
       "      <th>FLAG_DOCUMENT_18</th>\n",
       "      <th>FLAG_DOCUMENT_19</th>\n",
       "      <th>FLAG_DOCUMENT_20</th>\n",
       "      <th>FLAG_DOCUMENT_21</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_HOUR</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_DAY</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_WEEK</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_MON</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_QRT</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_YEAR</th>\n",
       "      <th>is_train</th>\n",
       "      <th>seq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1133</th>\n",
       "      <td>4402.0</td>\n",
       "      <td>181102</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>302076.0</td>\n",
       "      <td>23508.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.008575</td>\n",
       "      <td>-12395</td>\n",
       "      <td>-1146</td>\n",
       "      <td>-6502.0</td>\n",
       "      <td>-2246</td>\n",
       "      <td>14.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.664866</td>\n",
       "      <td>0.551381</td>\n",
       "      <td>0.0948</td>\n",
       "      <td>0.0792</td>\n",
       "      <td>0.9856</td>\n",
       "      <td>0.8028</td>\n",
       "      <td>...</td>\n",
       "      <td>0.8054</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.1724</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0903</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0592</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0749</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1522.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 125 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      user_id  SK_ID_CURR  TARGET NAME_CONTRACT_TYPE CODE_GENDER FLAG_OWN_CAR  \\\n",
       "1133   4402.0      181102     0.0         Cash loans           F            Y   \n",
       "\n",
       "     FLAG_OWN_REALTY  CNT_CHILDREN  AMT_INCOME_TOTAL  AMT_CREDIT  AMT_ANNUITY  \\\n",
       "1133               N             0           67500.0    302076.0      23508.0   \n",
       "\n",
       "      AMT_GOODS_PRICE NAME_TYPE_SUITE NAME_INCOME_TYPE NAME_EDUCATION_TYPE  \\\n",
       "1133         270000.0   Unaccompanied          Working    Higher education   \n",
       "\n",
       "     NAME_FAMILY_STATUS  NAME_HOUSING_TYPE  REGION_POPULATION_RELATIVE  \\\n",
       "1133            Married  House / apartment                    0.008575   \n",
       "\n",
       "      DAYS_BIRTH  DAYS_EMPLOYED  DAYS_REGISTRATION  DAYS_ID_PUBLISH  \\\n",
       "1133      -12395          -1146            -6502.0            -2246   \n",
       "\n",
       "      OWN_CAR_AGE  FLAG_MOBIL  FLAG_EMP_PHONE  FLAG_WORK_PHONE  \\\n",
       "1133         14.0           1               1                0   \n",
       "\n",
       "      FLAG_CONT_MOBILE  FLAG_PHONE  FLAG_EMAIL OCCUPATION_TYPE  \\\n",
       "1133                 1           1           1     Sales staff   \n",
       "\n",
       "      CNT_FAM_MEMBERS  REGION_RATING_CLIENT  REGION_RATING_CLIENT_W_CITY  \\\n",
       "1133              2.0                     2                            2   \n",
       "\n",
       "     WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "1133                    TUESDAY                       16   \n",
       "\n",
       "      REG_REGION_NOT_LIVE_REGION  REG_REGION_NOT_WORK_REGION  \\\n",
       "1133                           0                           0   \n",
       "\n",
       "      LIVE_REGION_NOT_WORK_REGION  REG_CITY_NOT_LIVE_CITY  \\\n",
       "1133                            0                       0   \n",
       "\n",
       "      REG_CITY_NOT_WORK_CITY  LIVE_CITY_NOT_WORK_CITY ORGANIZATION_TYPE  \\\n",
       "1133                       0                        0     Self-employed   \n",
       "\n",
       "      EXT_SOURCE_1  EXT_SOURCE_2  EXT_SOURCE_3  APARTMENTS_AVG  \\\n",
       "1133           NaN      0.664866      0.551381          0.0948   \n",
       "\n",
       "      BASEMENTAREA_AVG  YEARS_BEGINEXPLUATATION_AVG  YEARS_BUILD_AVG ...   \\\n",
       "1133            0.0792                       0.9856           0.8028 ...    \n",
       "\n",
       "      YEARS_BUILD_MEDI  COMMONAREA_MEDI  ELEVATORS_MEDI  ENTRANCES_MEDI  \\\n",
       "1133            0.8054              NaN             0.0          0.1724   \n",
       "\n",
       "      FLOORSMAX_MEDI  FLOORSMIN_MEDI  LANDAREA_MEDI  LIVINGAPARTMENTS_MEDI  \\\n",
       "1133          0.1667             NaN         0.0903                    NaN   \n",
       "\n",
       "      LIVINGAREA_MEDI  NONLIVINGAPARTMENTS_MEDI  NONLIVINGAREA_MEDI  \\\n",
       "1133           0.0592                       NaN                 NaN   \n",
       "\n",
       "      FONDKAPREMONT_MODE  HOUSETYPE_MODE  TOTALAREA_MODE  WALLSMATERIAL_MODE  \\\n",
       "1133    reg oper account  block of flats          0.0749        Stone, brick   \n",
       "\n",
       "      EMERGENCYSTATE_MODE  OBS_30_CNT_SOCIAL_CIRCLE  DEF_30_CNT_SOCIAL_CIRCLE  \\\n",
       "1133                   No                       2.0                       0.0   \n",
       "\n",
       "      OBS_60_CNT_SOCIAL_CIRCLE  DEF_60_CNT_SOCIAL_CIRCLE  \\\n",
       "1133                       2.0                       0.0   \n",
       "\n",
       "      DAYS_LAST_PHONE_CHANGE  FLAG_DOCUMENT_2  FLAG_DOCUMENT_3  \\\n",
       "1133                 -1522.0                0                1   \n",
       "\n",
       "      FLAG_DOCUMENT_4  FLAG_DOCUMENT_5  FLAG_DOCUMENT_6  FLAG_DOCUMENT_7  \\\n",
       "1133                0                0                0                0   \n",
       "\n",
       "      FLAG_DOCUMENT_8  FLAG_DOCUMENT_9  FLAG_DOCUMENT_10  FLAG_DOCUMENT_11  \\\n",
       "1133                0                0                 0                 0   \n",
       "\n",
       "      FLAG_DOCUMENT_12  FLAG_DOCUMENT_13  FLAG_DOCUMENT_14  FLAG_DOCUMENT_15  \\\n",
       "1133                 0                 0                 0                 0   \n",
       "\n",
       "      FLAG_DOCUMENT_16  FLAG_DOCUMENT_17  FLAG_DOCUMENT_18 FLAG_DOCUMENT_19  \\\n",
       "1133                 0                 0                 0                0   \n",
       "\n",
       "     FLAG_DOCUMENT_20  FLAG_DOCUMENT_21 AMT_REQ_CREDIT_BUREAU_HOUR  \\\n",
       "1133                0                 0                        0.0   \n",
       "\n",
       "     AMT_REQ_CREDIT_BUREAU_DAY  AMT_REQ_CREDIT_BUREAU_WEEK  \\\n",
       "1133                       0.0                         0.0   \n",
       "\n",
       "      AMT_REQ_CREDIT_BUREAU_MON  AMT_REQ_CREDIT_BUREAU_QRT  \\\n",
       "1133                        0.0                        0.0   \n",
       "\n",
       "      AMT_REQ_CREDIT_BUREAU_YEAR  is_train  seq  \n",
       "1133                         5.0         1    1  \n",
       "\n",
       "[1 rows x 125 columns]"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dup[dup.SK_ID_CURR==181102]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.441267Z",
     "start_time": "2018-08-28T21:13:22.410722Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1133178</th>\n",
       "      <td>1786922</td>\n",
       "      <td>100041</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>3268.485</td>\n",
       "      <td>15516.0</td>\n",
       "      <td>16285.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>15516.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2701</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>New</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>156</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>6.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-2670.0</td>\n",
       "      <td>-2520.0</td>\n",
       "      <td>-2520.0</td>\n",
       "      <td>-2509.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1546899</th>\n",
       "      <td>2305060</td>\n",
       "      <td>100041</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7297.515</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>64278.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1508</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>4000</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1477.0</td>\n",
       "      <td>-1147.0</td>\n",
       "      <td>-1147.0</td>\n",
       "      <td>-1095.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "1133178     1786922      100041     Consumer loans     3268.485   \n",
       "1546899     2305060      100041     Consumer loans     7297.515   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "1133178          15516.0     16285.5               0.0          15516.0   \n",
       "1546899          58486.5     64278.0               0.0          58486.5   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "1133178                   THURSDAY                       12   \n",
       "1546899                     SUNDAY                       14   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "1133178                           Y                       1   \n",
       "1546899                           Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "1133178                0.0                    NaN                       NaN   \n",
       "1546899                0.0                    NaN                       NaN   \n",
       "\n",
       "        NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "1133178                    XAP             Approved          -2701   \n",
       "1546899                    XAP             Approved          -1508   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "1133178  Cash through the bank                XAP          Family   \n",
       "1546899  Cash through the bank                XAP          Family   \n",
       "\n",
       "        NAME_CLIENT_TYPE   NAME_GOODS_CATEGORY NAME_PORTFOLIO  \\\n",
       "1133178              New                Mobile            POS   \n",
       "1546899        Refreshed  Consumer Electronics            POS   \n",
       "\n",
       "        NAME_PRODUCT_TYPE  CHANNEL_TYPE  SELLERPLACE_AREA  \\\n",
       "1133178               XNA  Country-wide               156   \n",
       "1546899               XNA  Country-wide              4000   \n",
       "\n",
       "         NAME_SELLER_INDUSTRY  CNT_PAYMENT NAME_YIELD_GROUP  \\\n",
       "1133178          Connectivity          6.0             high   \n",
       "1546899  Consumer electronics         12.0             high   \n",
       "\n",
       "                 PRODUCT_COMBINATION  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "1133178     POS mobile with interest            365243.0         -2670.0   \n",
       "1546899  POS household with interest            365243.0         -1477.0   \n",
       "\n",
       "         DAYS_LAST_DUE_1ST_VERSION  DAYS_LAST_DUE  DAYS_TERMINATION  \\\n",
       "1133178                    -2520.0        -2520.0           -2509.0   \n",
       "1546899                    -1147.0        -1147.0           -1095.0   \n",
       "\n",
       "         NFLAG_INSURED_ON_APPROVAL  \n",
       "1133178                        1.0  \n",
       "1546899                        0.0  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[prev.SK_ID_CURR==100041]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.474482Z",
     "start_time": "2018-08-28T21:13:22.442617Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>800131</th>\n",
       "      <td>1561592</td>\n",
       "      <td>181102</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7297.515</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>64278.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1745</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>4000</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1714.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1332.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>124560</th>\n",
       "      <td>1272122</td>\n",
       "      <td>181102</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>44509.500</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>19</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-237</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-207.0</td>\n",
       "      <td>123.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1206352</th>\n",
       "      <td>1524441</td>\n",
       "      <td>181102</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-153</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "800131      1561592      181102     Consumer loans     7297.515   \n",
       "124560      1272122      181102         Cash loans    44509.500   \n",
       "1206352     1524441      181102    Revolving loans          NaN   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "800131           58486.5     64278.0               0.0          58486.5   \n",
       "124560          450000.0    450000.0               NaN         450000.0   \n",
       "1206352              0.0         0.0               NaN              NaN   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "800131                      SUNDAY                       14   \n",
       "124560                      MONDAY                       19   \n",
       "1206352                  WEDNESDAY                       14   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "800131                            Y                       1   \n",
       "124560                            Y                       1   \n",
       "1206352                           Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "800131                 0.0                    NaN                       NaN   \n",
       "124560                 NaN                    NaN                       NaN   \n",
       "1206352                NaN                    NaN                       NaN   \n",
       "\n",
       "        NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "800131                     XAP             Approved          -1745   \n",
       "124560                     XNA             Approved           -237   \n",
       "1206352                    XAP             Canceled           -153   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "800131   Cash through the bank                XAP          Family   \n",
       "124560                     XNA                XAP   Unaccompanied   \n",
       "1206352                    XNA                XAP             NaN   \n",
       "\n",
       "        NAME_CLIENT_TYPE   NAME_GOODS_CATEGORY NAME_PORTFOLIO  \\\n",
       "800131         Refreshed  Consumer Electronics            POS   \n",
       "124560         Refreshed                   XNA           Cash   \n",
       "1206352         Repeater                   XNA            XNA   \n",
       "\n",
       "        NAME_PRODUCT_TYPE             CHANNEL_TYPE  SELLERPLACE_AREA  \\\n",
       "800131                XNA             Country-wide              4000   \n",
       "124560             x-sell           Contact center                -1   \n",
       "1206352               XNA  Credit and cash offices                -1   \n",
       "\n",
       "         NAME_SELLER_INDUSTRY  CNT_PAYMENT NAME_YIELD_GROUP  \\\n",
       "800131   Consumer electronics         12.0             high   \n",
       "124560                    XNA         12.0           middle   \n",
       "1206352                   XNA          NaN              XNA   \n",
       "\n",
       "                 PRODUCT_COMBINATION  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "800131   POS household with interest            365243.0         -1714.0   \n",
       "124560           Cash X-Sell: middle            365243.0          -207.0   \n",
       "1206352                  Card Street                 NaN             NaN   \n",
       "\n",
       "         DAYS_LAST_DUE_1ST_VERSION  DAYS_LAST_DUE  DAYS_TERMINATION  \\\n",
       "800131                     -1384.0        -1384.0           -1332.0   \n",
       "124560                       123.0       365243.0          365243.0   \n",
       "1206352                        NaN            NaN               NaN   \n",
       "\n",
       "         NFLAG_INSURED_ON_APPROVAL  \n",
       "800131                         0.0  \n",
       "124560                         0.0  \n",
       "1206352                        NaN  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[prev.SK_ID_CURR==181102]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.780018Z",
     "start_time": "2018-08-28T21:13:22.475976Z"
    }
   },
   "outputs": [],
   "source": [
    "col_num = prev.select_dtypes(exclude='O').columns.tolist()\n",
    "col_cat = prev.select_dtypes('O').columns.tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.784821Z",
     "start_time": "2018-08-28T21:13:22.781472Z"
    }
   },
   "outputs": [],
   "source": [
    "date_feature = ['DAYS_DECISION', 'DAYS_FIRST_DRAWING', 'DAYS_FIRST_DUE', 'DAYS_LAST_DUE_1ST_VERSION',\n",
    "               'DAYS_LAST_DUE', 'DAYS_TERMINATION']\n",
    "\n",
    "keys = ['NAME_CONTRACT_TYPE', 'AMT_ANNUITY', 'AMT_APPLICATION', 'AMT_CREDIT', \n",
    "        'AMT_DOWN_PAYMENT', 'AMT_GOODS_PRICE', 'WEEKDAY_APPR_PROCESS_START', \n",
    "        'HOUR_APPR_PROCESS_START', 'FLAG_LAST_APPL_PER_CONTRACT', 'NFLAG_LAST_APPL_IN_DAY',\n",
    "        'RATE_DOWN_PAYMENT', 'NAME_CONTRACT_STATUS', 'NAME_TYPE_SUITE', 'PRODUCT_COMBINATION']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:22.788955Z",
     "start_time": "2018-08-28T21:13:22.786382Z"
    }
   },
   "outputs": [],
   "source": [
    "for c in date_feature:\n",
    "    col_num.remove(c)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:25.657425Z",
     "start_time": "2018-08-28T21:13:22.790356Z"
    }
   },
   "outputs": [],
   "source": [
    "prev[col_num] = prev[col_num].fillna(-1) # awful \n",
    "prev[col_cat] = prev[col_cat].fillna('-NA-')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:25.693360Z",
     "start_time": "2018-08-28T21:13:25.659318Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>800131</th>\n",
       "      <td>1561592</td>\n",
       "      <td>181102</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7297.515</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>64278.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1745</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>4000</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1714.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1332.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>124560</th>\n",
       "      <td>1272122</td>\n",
       "      <td>181102</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>44509.500</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>19</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-237</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-207.0</td>\n",
       "      <td>123.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1206352</th>\n",
       "      <td>1524441</td>\n",
       "      <td>181102</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-153</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "800131      1561592      181102     Consumer loans     7297.515   \n",
       "124560      1272122      181102         Cash loans    44509.500   \n",
       "1206352     1524441      181102    Revolving loans       -1.000   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "800131           58486.5     64278.0               0.0          58486.5   \n",
       "124560          450000.0    450000.0              -1.0         450000.0   \n",
       "1206352              0.0         0.0              -1.0             -1.0   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "800131                      SUNDAY                       14   \n",
       "124560                      MONDAY                       19   \n",
       "1206352                  WEDNESDAY                       14   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "800131                            Y                       1   \n",
       "124560                            Y                       1   \n",
       "1206352                           Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "800131                 0.0                   -1.0                      -1.0   \n",
       "124560                -1.0                   -1.0                      -1.0   \n",
       "1206352               -1.0                   -1.0                      -1.0   \n",
       "\n",
       "        NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "800131                     XAP             Approved          -1745   \n",
       "124560                     XNA             Approved           -237   \n",
       "1206352                    XAP             Canceled           -153   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "800131   Cash through the bank                XAP          Family   \n",
       "124560                     XNA                XAP   Unaccompanied   \n",
       "1206352                    XNA                XAP            -NA-   \n",
       "\n",
       "        NAME_CLIENT_TYPE   NAME_GOODS_CATEGORY NAME_PORTFOLIO  \\\n",
       "800131         Refreshed  Consumer Electronics            POS   \n",
       "124560         Refreshed                   XNA           Cash   \n",
       "1206352         Repeater                   XNA            XNA   \n",
       "\n",
       "        NAME_PRODUCT_TYPE             CHANNEL_TYPE  SELLERPLACE_AREA  \\\n",
       "800131                XNA             Country-wide              4000   \n",
       "124560             x-sell           Contact center                -1   \n",
       "1206352               XNA  Credit and cash offices                -1   \n",
       "\n",
       "         NAME_SELLER_INDUSTRY  CNT_PAYMENT NAME_YIELD_GROUP  \\\n",
       "800131   Consumer electronics         12.0             high   \n",
       "124560                    XNA         12.0           middle   \n",
       "1206352                   XNA         -1.0              XNA   \n",
       "\n",
       "                 PRODUCT_COMBINATION  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "800131   POS household with interest            365243.0         -1714.0   \n",
       "124560           Cash X-Sell: middle            365243.0          -207.0   \n",
       "1206352                  Card Street                 NaN             NaN   \n",
       "\n",
       "         DAYS_LAST_DUE_1ST_VERSION  DAYS_LAST_DUE  DAYS_TERMINATION  \\\n",
       "800131                     -1384.0        -1384.0           -1332.0   \n",
       "124560                       123.0       365243.0          365243.0   \n",
       "1206352                        NaN            NaN               NaN   \n",
       "\n",
       "         NFLAG_INSURED_ON_APPROVAL  \n",
       "800131                         0.0  \n",
       "124560                         0.0  \n",
       "1206352                       -1.0  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[prev.SK_ID_CURR==181102]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Clean Up prev"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:25.794490Z",
     "start_time": "2018-08-28T21:13:25.694763Z"
    }
   },
   "outputs": [],
   "source": [
    "def forwards(args):\n",
    "    start_ix, last_ix = args\n",
    "    li = []\n",
    "    curr_id_bk, seq_bk, day_bk = None, None, None\n",
    "    for i in range(start_ix, last_ix):\n",
    "        curr_id, seq, day = dup.iloc[i, 1], dup.iloc[i, -1], dup.iloc[i, 18] \n",
    "        if seq ==0:\n",
    "            curr_id_bk, seq_bk, day_bk = curr_id, seq, day\n",
    "            continue\n",
    "        else:\n",
    "            day_diff = day - day_bk\n",
    "            \n",
    "            if day_diff==0:\n",
    "                curr_id_bk, seq_bk, day_bk = curr_id, seq, day\n",
    "                continue\n",
    "            \n",
    "            prev_bk = prev[prev.SK_ID_CURR==curr_id_bk]\n",
    "            prev_bk['SK_ID_CURR'] = curr_id\n",
    "            for c in date_feature:\n",
    "                prev_bk.loc[prev[c]!=365243, c] += day_diff\n",
    "            \n",
    "            prev_cur = prev[prev.SK_ID_CURR==curr_id]\n",
    "            \n",
    "            # ==== augmentation ====\n",
    "            a = prev_bk.groupby(keys).size()\n",
    "            a.name = 'a'\n",
    "            b = prev_cur.groupby(keys).size()\n",
    "            b.name = 'b'\n",
    "            \n",
    "            tmp = pd.concat([a, b], axis=1, join='outer')\n",
    "            tmp[['a', 'b']] = tmp[['a', 'b']].fillna(0)\n",
    "            tmp['need'] = tmp['a'] - tmp['b']\n",
    "            \n",
    "            base = tmp[tmp.need>0][['need']]\n",
    "            \n",
    "            aug = pd.DataFrame()\n",
    "            while base.shape[0] > 0:\n",
    "                aug = aug.append(base.drop('need', axis=1))\n",
    "                \n",
    "                base.need -= 1\n",
    "                base = base[base.need>0]\n",
    "            \n",
    "            if aug.shape[0]==0:\n",
    "                df = pd.DataFrame()\n",
    "            else:\n",
    "                df = pd.merge(aug.reset_index(), prev_bk, on=keys, how='left' )\n",
    "                df = pd.concat([df, prev_cur])\n",
    "            # ==== augmentation end ====\n",
    "            \n",
    "            \n",
    "            li.append(df)\n",
    "        \n",
    "        curr_id_bk, seq_bk, day_bk = curr_id, seq, day\n",
    "        \n",
    "    return li"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:26.123439Z",
     "start_time": "2018-08-28T21:13:25.796143Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.concat(forwards((0, 2)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:13:27.649521Z",
     "start_time": "2018-08-28T21:13:26.124832Z"
    }
   },
   "outputs": [],
   "source": [
    "argmin = dup.groupby('user_id').seq.apply(np.argmin)\n",
    "argmax = dup.groupby('user_id').seq.apply(np.argmax)\n",
    "argmax +=1\n",
    "\n",
    "argss = list(zip(argmin.values, argmax.values ))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:11.895643Z",
     "start_time": "2018-08-28T21:13:27.651498Z"
    }
   },
   "outputs": [],
   "source": [
    "pool = Pool(NTHREAD)\n",
    "callback = pool.map(forwards, argss)\n",
    "pool.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:12.033725Z",
     "start_time": "2018-08-28T21:15:11.898731Z"
    }
   },
   "outputs": [],
   "source": [
    "callback2 = sum( callback , [])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:13.337672Z",
     "start_time": "2018-08-28T21:15:12.035342Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_cleaned = pd.concat(callback2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:13.342830Z",
     "start_time": "2018-08-28T21:15:13.339807Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_cleaned_id = prev_cleaned.SK_ID_CURR.tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:14.269960Z",
     "start_time": "2018-08-28T21:15:13.344282Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_ = prev[~prev.SK_ID_CURR.isin(prev_cleaned_id)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:15.294791Z",
     "start_time": "2018-08-28T21:15:14.271661Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_new = pd.concat([prev_cleaned, prev_], ignore_index=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## check"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:15.356444Z",
     "start_time": "2018-08-28T21:15:15.296478Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((338857,), (338857,))"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev.SK_ID_CURR.unique().shape, prev_new.SK_ID_CURR.unique().shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:15.628346Z",
     "start_time": "2018-08-28T21:15:15.358211Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((1670214,), (1670214,))"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev.SK_ID_PREV.unique().shape, prev_new.SK_ID_PREV.unique().shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:16.329737Z",
     "start_time": "2018-08-28T21:15:15.630091Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [SK_ID_PREV, SK_ID_CURR, NAME_CONTRACT_TYPE, AMT_ANNUITY, AMT_APPLICATION, AMT_CREDIT, AMT_DOWN_PAYMENT, AMT_GOODS_PRICE, WEEKDAY_APPR_PROCESS_START, HOUR_APPR_PROCESS_START, FLAG_LAST_APPL_PER_CONTRACT, NFLAG_LAST_APPL_IN_DAY, RATE_DOWN_PAYMENT, RATE_INTEREST_PRIMARY, RATE_INTEREST_PRIVILEGED, NAME_CASH_LOAN_PURPOSE, NAME_CONTRACT_STATUS, DAYS_DECISION, NAME_PAYMENT_TYPE, CODE_REJECT_REASON, NAME_TYPE_SUITE, NAME_CLIENT_TYPE, NAME_GOODS_CATEGORY, NAME_PORTFOLIO, NAME_PRODUCT_TYPE, CHANNEL_TYPE, SELLERPLACE_AREA, NAME_SELLER_INDUSTRY, CNT_PAYMENT, NAME_YIELD_GROUP, PRODUCT_COMBINATION, DAYS_FIRST_DRAWING, DAYS_FIRST_DUE, DAYS_LAST_DUE_1ST_VERSION, DAYS_LAST_DUE, DAYS_TERMINATION, NFLAG_INSURED_ON_APPROVAL]\n",
       "Index: []"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[~prev.SK_ID_PREV.isin(prev_new.SK_ID_PREV)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:17.575915Z",
     "start_time": "2018-08-28T21:15:16.331529Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1696</th>\n",
       "      <td>3268.485</td>\n",
       "      <td>15516.0</td>\n",
       "      <td>16285.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>15516.0</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>6.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-2938</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-2907.0</td>\n",
       "      <td>-2757.0</td>\n",
       "      <td>-2757.0</td>\n",
       "      <td>-2746.0</td>\n",
       "      <td>Y</td>\n",
       "      <td>12</td>\n",
       "      <td>XAP</td>\n",
       "      <td>New</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>Family</td>\n",
       "      <td>high</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>156</td>\n",
       "      <td>181102</td>\n",
       "      <td>1786922</td>\n",
       "      <td>THURSDAY</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1697</th>\n",
       "      <td>7297.515</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>64278.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>12.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-1745</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1714.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1332.0</td>\n",
       "      <td>Y</td>\n",
       "      <td>14</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>Family</td>\n",
       "      <td>high</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>4000</td>\n",
       "      <td>181102</td>\n",
       "      <td>1561592</td>\n",
       "      <td>SUNDAY</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1698</th>\n",
       "      <td>44509.500</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>12.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-237</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-207.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>123.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>Y</td>\n",
       "      <td>19</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>middle</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1</td>\n",
       "      <td>181102</td>\n",
       "      <td>1272122</td>\n",
       "      <td>MONDAY</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1699</th>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-153</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Y</td>\n",
       "      <td>14</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1</td>\n",
       "      <td>181102</td>\n",
       "      <td>1524441</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "      AMT_ANNUITY  AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  \\\n",
       "1696     3268.485          15516.0     16285.5               0.0   \n",
       "1697     7297.515          58486.5     64278.0               0.0   \n",
       "1698    44509.500         450000.0    450000.0              -1.0   \n",
       "1699       -1.000              0.0         0.0              -1.0   \n",
       "\n",
       "      AMT_GOODS_PRICE             CHANNEL_TYPE  CNT_PAYMENT  \\\n",
       "1696          15516.0             Country-wide          6.0   \n",
       "1697          58486.5             Country-wide         12.0   \n",
       "1698         450000.0           Contact center         12.0   \n",
       "1699             -1.0  Credit and cash offices         -1.0   \n",
       "\n",
       "     CODE_REJECT_REASON  DAYS_DECISION  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "1696                XAP          -2938            365243.0         -2907.0   \n",
       "1697                XAP          -1745            365243.0         -1714.0   \n",
       "1698                XAP           -237            365243.0          -207.0   \n",
       "1699                XAP           -153                 NaN             NaN   \n",
       "\n",
       "      DAYS_LAST_DUE  DAYS_LAST_DUE_1ST_VERSION  DAYS_TERMINATION  \\\n",
       "1696        -2757.0                    -2757.0           -2746.0   \n",
       "1697        -1384.0                    -1384.0           -1332.0   \n",
       "1698       365243.0                      123.0          365243.0   \n",
       "1699            NaN                        NaN               NaN   \n",
       "\n",
       "     FLAG_LAST_APPL_PER_CONTRACT  HOUR_APPR_PROCESS_START  \\\n",
       "1696                           Y                       12   \n",
       "1697                           Y                       14   \n",
       "1698                           Y                       19   \n",
       "1699                           Y                       14   \n",
       "\n",
       "     NAME_CASH_LOAN_PURPOSE NAME_CLIENT_TYPE NAME_CONTRACT_STATUS  \\\n",
       "1696                    XAP              New             Approved   \n",
       "1697                    XAP        Refreshed             Approved   \n",
       "1698                    XNA        Refreshed             Approved   \n",
       "1699                    XAP         Repeater             Canceled   \n",
       "\n",
       "     NAME_CONTRACT_TYPE   NAME_GOODS_CATEGORY      NAME_PAYMENT_TYPE  \\\n",
       "1696     Consumer loans                Mobile  Cash through the bank   \n",
       "1697     Consumer loans  Consumer Electronics  Cash through the bank   \n",
       "1698         Cash loans                   XNA                    XNA   \n",
       "1699    Revolving loans                   XNA                    XNA   \n",
       "\n",
       "     NAME_PORTFOLIO NAME_PRODUCT_TYPE  NAME_SELLER_INDUSTRY NAME_TYPE_SUITE  \\\n",
       "1696            POS               XNA          Connectivity          Family   \n",
       "1697            POS               XNA  Consumer electronics          Family   \n",
       "1698           Cash            x-sell                   XNA   Unaccompanied   \n",
       "1699            XNA               XNA                   XNA            -NA-   \n",
       "\n",
       "     NAME_YIELD_GROUP  NFLAG_INSURED_ON_APPROVAL  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "1696             high                        1.0                       1   \n",
       "1697             high                        0.0                       1   \n",
       "1698           middle                        0.0                       1   \n",
       "1699              XNA                       -1.0                       1   \n",
       "\n",
       "              PRODUCT_COMBINATION  RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  \\\n",
       "1696     POS mobile with interest                0.0                   -1.0   \n",
       "1697  POS household with interest                0.0                   -1.0   \n",
       "1698          Cash X-Sell: middle               -1.0                   -1.0   \n",
       "1699                  Card Street               -1.0                   -1.0   \n",
       "\n",
       "      RATE_INTEREST_PRIVILEGED  SELLERPLACE_AREA  SK_ID_CURR  SK_ID_PREV  \\\n",
       "1696                      -1.0               156      181102     1786922   \n",
       "1697                      -1.0              4000      181102     1561592   \n",
       "1698                      -1.0                -1      181102     1272122   \n",
       "1699                      -1.0                -1      181102     1524441   \n",
       "\n",
       "     WEEKDAY_APPR_PROCESS_START  \n",
       "1696                   THURSDAY  \n",
       "1697                     SUNDAY  \n",
       "1698                     MONDAY  \n",
       "1699                  WEDNESDAY  "
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev_new[prev_new.SK_ID_CURR==181102]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# merge with clean prev"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:27.204834Z",
     "start_time": "2018-08-28T21:15:17.577950Z"
    }
   },
   "outputs": [],
   "source": [
    "prev = pd.read_csv('../input/previous_application.csv.zip')\n",
    "col = prev.columns.tolist()\n",
    "prev.drop(['SK_ID_CURR']+date_feature, axis=1, inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:27.276404Z",
     "start_time": "2018-08-28T21:15:27.207634Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_new_base = prev_new[['SK_ID_PREV', 'SK_ID_CURR']+date_feature]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:27.282904Z",
     "start_time": "2018-08-28T21:15:27.278449Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(1671673, 8)"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev_new_base.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:27.288190Z",
     "start_time": "2018-08-28T21:15:27.284541Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(1670214, 30)"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:40.626483Z",
     "start_time": "2018-08-28T21:15:27.289772Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_new2 = pd.merge(prev_new_base, prev, on='SK_ID_PREV', how='left')[col]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:40.728231Z",
     "start_time": "2018-08-28T21:15:40.629409Z"
    },
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2821489</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>9109.485</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>95940.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-4821</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-4791.0</td>\n",
       "      <td>-4461.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1940786</td>\n",
       "      <td>340385</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7969.320</td>\n",
       "      <td>60525.0</td>\n",
       "      <td>42367.5</td>\n",
       "      <td>18157.5</td>\n",
       "      <td>60525.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.326727</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-4996</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>New</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Stone</td>\n",
       "      <td>30</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>6.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS industry with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-4952.0</td>\n",
       "      <td>-4802.0</td>\n",
       "      <td>-4802.0</td>\n",
       "      <td>-4797.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2559483</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>12185.370</td>\n",
       "      <td>229500.0</td>\n",
       "      <td>266760.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>229500.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1252</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Other_A</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1222.0</td>\n",
       "      <td>-172.0</td>\n",
       "      <td>-1102.0</td>\n",
       "      <td>-1094.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2078085</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>14312.880</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>313839.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-644</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-614.0</td>\n",
       "      <td>436.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2553803</td>\n",
       "      <td>340385</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>2250.000</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-432</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1203723</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-432</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>2492530</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>4266.225</td>\n",
       "      <td>99000.0</td>\n",
       "      <td>125136.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>99000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-432</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>48.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-402.0</td>\n",
       "      <td>1008.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>2071598</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-432</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2358616</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-412</td>\n",
       "      <td>XNA</td>\n",
       "      <td>HC</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>2787081</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-410</td>\n",
       "      <td>XNA</td>\n",
       "      <td>HC</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1178888</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>29134.935</td>\n",
       "      <td>828000.0</td>\n",
       "      <td>991944.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>828000.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-213</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>2656406</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-213</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1917375</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>29450.205</td>\n",
       "      <td>837000.0</td>\n",
       "      <td>1002726.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>837000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-181</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>2222764</td>\n",
       "      <td>340385</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-181</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>2634481</td>\n",
       "      <td>241943</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-943</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1209958</td>\n",
       "      <td>241943</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>24908.085</td>\n",
       "      <td>697500.0</td>\n",
       "      <td>793251.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>697500.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-943</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>48.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-913.0</td>\n",
       "      <td>497.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>2223052</td>\n",
       "      <td>241943</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>3411.270</td>\n",
       "      <td>30033.9</td>\n",
       "      <td>30033.9</td>\n",
       "      <td>0.0</td>\n",
       "      <td>30033.9</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-798</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>35</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>10.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1796943</td>\n",
       "      <td>241943</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>15036.120</td>\n",
       "      <td>134946.0</td>\n",
       "      <td>149197.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>134946.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1423</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>New</td>\n",
       "      <td>Audio/Video</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>2100</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1392.0</td>\n",
       "      <td>-1062.0</td>\n",
       "      <td>-1062.0</td>\n",
       "      <td>-1056.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1033091</td>\n",
       "      <td>241943</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>4594.050</td>\n",
       "      <td>42448.5</td>\n",
       "      <td>41350.5</td>\n",
       "      <td>4248.0</td>\n",
       "      <td>42448.5</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.101461</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2778</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>New</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>95</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>10.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS household without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-2744.0</td>\n",
       "      <td>-2474.0</td>\n",
       "      <td>-2474.0</td>\n",
       "      <td>-2469.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>2608351</td>\n",
       "      <td>241943</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>5920.650</td>\n",
       "      <td>41503.5</td>\n",
       "      <td>39816.0</td>\n",
       "      <td>4153.5</td>\n",
       "      <td>41503.5</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.102879</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1990</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Audio/Video</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>95</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>8.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1936.0</td>\n",
       "      <td>-1726.0</td>\n",
       "      <td>-1726.0</td>\n",
       "      <td>-1720.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1895796</td>\n",
       "      <td>241943</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>6911.370</td>\n",
       "      <td>51745.5</td>\n",
       "      <td>50670.0</td>\n",
       "      <td>5175.0</td>\n",
       "      <td>51745.5</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.100923</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1248</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>30</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>10.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1217.0</td>\n",
       "      <td>-947.0</td>\n",
       "      <td>-947.0</td>\n",
       "      <td>-935.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>2785070</td>\n",
       "      <td>241943</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>12807.135</td>\n",
       "      <td>124105.5</td>\n",
       "      <td>137209.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>124105.5</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-566</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Regional / Local</td>\n",
       "      <td>100</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-535.0</td>\n",
       "      <td>-205.0</td>\n",
       "      <td>-205.0</td>\n",
       "      <td>-201.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1050559</td>\n",
       "      <td>241943</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>5405.850</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>101880.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-424</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>24.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-394.0</td>\n",
       "      <td>296.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1345633</td>\n",
       "      <td>241943</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-424</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1797083</td>\n",
       "      <td>241943</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>6750.000</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-424</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card X-Sell</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671648</th>\n",
       "      <td>1458662</td>\n",
       "      <td>101765</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671649</th>\n",
       "      <td>1145009</td>\n",
       "      <td>390899</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671650</th>\n",
       "      <td>1896812</td>\n",
       "      <td>422303</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>12019.320</td>\n",
       "      <td>244935.0</td>\n",
       "      <td>231435.0</td>\n",
       "      <td>13500.0</td>\n",
       "      <td>244935.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.060027</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>100</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>30.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS industry with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>898.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671651</th>\n",
       "      <td>1098471</td>\n",
       "      <td>181514</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671652</th>\n",
       "      <td>1774966</td>\n",
       "      <td>209878</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>4332.915</td>\n",
       "      <td>42930.0</td>\n",
       "      <td>42930.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>42930.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.182818</td>\n",
       "      <td>0.867336</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>66</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>373.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671653</th>\n",
       "      <td>2602942</td>\n",
       "      <td>413027</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671654</th>\n",
       "      <td>1637036</td>\n",
       "      <td>349592</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>6</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671655</th>\n",
       "      <td>2351954</td>\n",
       "      <td>390899</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671656</th>\n",
       "      <td>2303131</td>\n",
       "      <td>338537</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671657</th>\n",
       "      <td>1766905</td>\n",
       "      <td>303675</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>14994.270</td>\n",
       "      <td>129789.0</td>\n",
       "      <td>141210.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>129789.0</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>8</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Regional / Local</td>\n",
       "      <td>100</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>10.0</td>\n",
       "      <td>low_action</td>\n",
       "      <td>POS industry without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>298.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671658</th>\n",
       "      <td>2521350</td>\n",
       "      <td>282609</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>2250.000</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>HC</td>\n",
       "      <td>Family</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>250</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671659</th>\n",
       "      <td>2461214</td>\n",
       "      <td>112587</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671660</th>\n",
       "      <td>1296824</td>\n",
       "      <td>154724</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671661</th>\n",
       "      <td>2815494</td>\n",
       "      <td>259311</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>45205.605</td>\n",
       "      <td>1350000.0</td>\n",
       "      <td>1546020.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1350000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>19</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>SCO</td>\n",
       "      <td>Spouse, partner</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671662</th>\n",
       "      <td>2545676</td>\n",
       "      <td>110392</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671663</th>\n",
       "      <td>2472603</td>\n",
       "      <td>417284</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671664</th>\n",
       "      <td>1512666</td>\n",
       "      <td>224274</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>26316.000</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>17</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671665</th>\n",
       "      <td>2625473</td>\n",
       "      <td>292727</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>34465.500</td>\n",
       "      <td>675000.0</td>\n",
       "      <td>675000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>675000.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671666</th>\n",
       "      <td>1419863</td>\n",
       "      <td>418547</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7084.035</td>\n",
       "      <td>58261.5</td>\n",
       "      <td>58261.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>58261.5</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Computers</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>26</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671667</th>\n",
       "      <td>2608663</td>\n",
       "      <td>330701</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>10125.000</td>\n",
       "      <td>202500.0</td>\n",
       "      <td>202500.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>202500.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card X-Sell</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671668</th>\n",
       "      <td>1757999</td>\n",
       "      <td>153920</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-2</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671669</th>\n",
       "      <td>2046118</td>\n",
       "      <td>392585</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>5493.645</td>\n",
       "      <td>121945.5</td>\n",
       "      <td>121945.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>121945.5</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Computers</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>1200</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>24.0</td>\n",
       "      <td>low_action</td>\n",
       "      <td>POS household without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>718.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671670</th>\n",
       "      <td>1161896</td>\n",
       "      <td>290295</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>3522.105</td>\n",
       "      <td>60831.0</td>\n",
       "      <td>75285.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>60831.0</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>20</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Children</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>6000</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>24.0</td>\n",
       "      <td>low_action</td>\n",
       "      <td>POS household without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>718.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671671</th>\n",
       "      <td>1332045</td>\n",
       "      <td>369722</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>22630.680</td>\n",
       "      <td>128250.0</td>\n",
       "      <td>128250.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>128250.0</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>19</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>25</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>6.0</td>\n",
       "      <td>low_action</td>\n",
       "      <td>POS industry without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>179.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1671672</th>\n",
       "      <td>1086988</td>\n",
       "      <td>446450</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>8755.155</td>\n",
       "      <td>81801.0</td>\n",
       "      <td>81801.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>81801.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>28</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>14.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>426.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1671673 rows × 37 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "0           2821489      340385         Cash loans     9109.485   \n",
       "1           1940786      340385     Consumer loans     7969.320   \n",
       "2           2559483      340385         Cash loans    12185.370   \n",
       "3           2078085      340385         Cash loans    14312.880   \n",
       "4           2553803      340385    Revolving loans     2250.000   \n",
       "5           1203723      340385         Cash loans          NaN   \n",
       "6           2492530      340385         Cash loans     4266.225   \n",
       "7           2071598      340385         Cash loans          NaN   \n",
       "8           2358616      340385         Cash loans          NaN   \n",
       "9           2787081      340385         Cash loans          NaN   \n",
       "10          1178888      340385         Cash loans    29134.935   \n",
       "11          2656406      340385         Cash loans          NaN   \n",
       "12          1917375      340385         Cash loans    29450.205   \n",
       "13          2222764      340385         Cash loans          NaN   \n",
       "14          2634481      241943         Cash loans          NaN   \n",
       "15          1209958      241943         Cash loans    24908.085   \n",
       "16          2223052      241943     Consumer loans     3411.270   \n",
       "17          1796943      241943     Consumer loans    15036.120   \n",
       "18          1033091      241943     Consumer loans     4594.050   \n",
       "19          2608351      241943     Consumer loans     5920.650   \n",
       "20          1895796      241943     Consumer loans     6911.370   \n",
       "21          2785070      241943     Consumer loans    12807.135   \n",
       "22          1050559      241943         Cash loans     5405.850   \n",
       "23          1345633      241943    Revolving loans          NaN   \n",
       "24          1797083      241943    Revolving loans     6750.000   \n",
       "...             ...         ...                ...          ...   \n",
       "1671648     1458662      101765         Cash loans          NaN   \n",
       "1671649     1145009      390899         Cash loans          NaN   \n",
       "1671650     1896812      422303     Consumer loans    12019.320   \n",
       "1671651     1098471      181514         Cash loans          NaN   \n",
       "1671652     1774966      209878     Consumer loans     4332.915   \n",
       "1671653     2602942      413027         Cash loans          NaN   \n",
       "1671654     1637036      349592         Cash loans          NaN   \n",
       "1671655     2351954      390899         Cash loans          NaN   \n",
       "1671656     2303131      338537    Revolving loans          NaN   \n",
       "1671657     1766905      303675     Consumer loans    14994.270   \n",
       "1671658     2521350      282609    Revolving loans     2250.000   \n",
       "1671659     2461214      112587         Cash loans          NaN   \n",
       "1671660     1296824      154724         Cash loans          NaN   \n",
       "1671661     2815494      259311         Cash loans    45205.605   \n",
       "1671662     2545676      110392         Cash loans          NaN   \n",
       "1671663     2472603      417284         Cash loans          NaN   \n",
       "1671664     1512666      224274         Cash loans    26316.000   \n",
       "1671665     2625473      292727         Cash loans    34465.500   \n",
       "1671666     1419863      418547     Consumer loans     7084.035   \n",
       "1671667     2608663      330701    Revolving loans    10125.000   \n",
       "1671668     1757999      153920         Cash loans          NaN   \n",
       "1671669     2046118      392585     Consumer loans     5493.645   \n",
       "1671670     1161896      290295     Consumer loans     3522.105   \n",
       "1671671     1332045      369722     Consumer loans    22630.680   \n",
       "1671672     1086988      446450     Consumer loans     8755.155   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "0                90000.0     95940.0               NaN          90000.0   \n",
       "1                60525.0     42367.5           18157.5          60525.0   \n",
       "2               229500.0    266760.0               NaN         229500.0   \n",
       "3               270000.0    313839.0               NaN         270000.0   \n",
       "4                45000.0     45000.0               NaN          45000.0   \n",
       "5                    0.0         0.0               NaN              NaN   \n",
       "6                99000.0    125136.0               NaN          99000.0   \n",
       "7                    0.0         0.0               NaN              NaN   \n",
       "8                    0.0         0.0               NaN              NaN   \n",
       "9                    0.0         0.0               NaN              NaN   \n",
       "10              828000.0    991944.0               NaN         828000.0   \n",
       "11                   0.0         0.0               NaN              NaN   \n",
       "12              837000.0   1002726.0               NaN         837000.0   \n",
       "13                   0.0         0.0               NaN              NaN   \n",
       "14                   0.0         0.0               NaN              NaN   \n",
       "15              697500.0    793251.0               NaN         697500.0   \n",
       "16               30033.9     30033.9               0.0          30033.9   \n",
       "17              134946.0    149197.5               0.0         134946.0   \n",
       "18               42448.5     41350.5            4248.0          42448.5   \n",
       "19               41503.5     39816.0            4153.5          41503.5   \n",
       "20               51745.5     50670.0            5175.0          51745.5   \n",
       "21              124105.5    137209.5               0.0         124105.5   \n",
       "22               90000.0    101880.0               NaN          90000.0   \n",
       "23                   0.0         0.0               NaN              NaN   \n",
       "24              135000.0    135000.0               NaN         135000.0   \n",
       "...                  ...         ...               ...              ...   \n",
       "1671648              0.0         0.0               NaN              NaN   \n",
       "1671649              0.0         0.0               NaN              NaN   \n",
       "1671650         244935.0    231435.0           13500.0         244935.0   \n",
       "1671651              0.0         0.0               NaN              NaN   \n",
       "1671652          42930.0     42930.0               0.0          42930.0   \n",
       "1671653              0.0         0.0               NaN              NaN   \n",
       "1671654              0.0         0.0               NaN              NaN   \n",
       "1671655              0.0         0.0               NaN              NaN   \n",
       "1671656              0.0         0.0               NaN              NaN   \n",
       "1671657         129789.0    141210.0               0.0         129789.0   \n",
       "1671658          45000.0     45000.0               NaN          45000.0   \n",
       "1671659              0.0         0.0               NaN              NaN   \n",
       "1671660              0.0         0.0               NaN              NaN   \n",
       "1671661        1350000.0   1546020.0               NaN        1350000.0   \n",
       "1671662              0.0         0.0               NaN              NaN   \n",
       "1671663              0.0         0.0               NaN              NaN   \n",
       "1671664         900000.0    900000.0               NaN         900000.0   \n",
       "1671665         675000.0    675000.0               NaN         675000.0   \n",
       "1671666          58261.5     58261.5               0.0          58261.5   \n",
       "1671667         202500.0    202500.0               NaN         202500.0   \n",
       "1671668              0.0         0.0               NaN              NaN   \n",
       "1671669         121945.5    121945.5               0.0         121945.5   \n",
       "1671670          60831.0     75285.0               0.0          60831.0   \n",
       "1671671         128250.0    128250.0               0.0         128250.0   \n",
       "1671672          81801.0     81801.0               0.0          81801.0   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "0                         THURSDAY                       14   \n",
       "1                         THURSDAY                       11   \n",
       "2                        WEDNESDAY                       14   \n",
       "3                          TUESDAY                       14   \n",
       "4                         THURSDAY                       14   \n",
       "5                         THURSDAY                       14   \n",
       "6                         THURSDAY                       14   \n",
       "7                         THURSDAY                       14   \n",
       "8                        WEDNESDAY                       12   \n",
       "9                           FRIDAY                       13   \n",
       "10                        SATURDAY                       15   \n",
       "11                        SATURDAY                       15   \n",
       "12                       WEDNESDAY                       13   \n",
       "13                       WEDNESDAY                       13   \n",
       "14                          MONDAY                       14   \n",
       "15                          MONDAY                       14   \n",
       "16                        SATURDAY                       15   \n",
       "17                        THURSDAY                       15   \n",
       "18                        SATURDAY                       11   \n",
       "19                       WEDNESDAY                       14   \n",
       "20                       WEDNESDAY                       10   \n",
       "21                        SATURDAY                       13   \n",
       "22                          MONDAY                       14   \n",
       "23                          MONDAY                       14   \n",
       "24                          MONDAY                       14   \n",
       "...                            ...                      ...   \n",
       "1671648                     MONDAY                       14   \n",
       "1671649                     MONDAY                       10   \n",
       "1671650                     MONDAY                       12   \n",
       "1671651                    TUESDAY                        9   \n",
       "1671652                     MONDAY                       18   \n",
       "1671653                  WEDNESDAY                       11   \n",
       "1671654                   SATURDAY                        6   \n",
       "1671655                     MONDAY                       15   \n",
       "1671656                     SUNDAY                       12   \n",
       "1671657                     SUNDAY                        8   \n",
       "1671658                     SUNDAY                       10   \n",
       "1671659                   SATURDAY                       12   \n",
       "1671660                  WEDNESDAY                       12   \n",
       "1671661                    TUESDAY                       19   \n",
       "1671662                   THURSDAY                       12   \n",
       "1671663                     FRIDAY                        9   \n",
       "1671664                  WEDNESDAY                       17   \n",
       "1671665                   SATURDAY                       10   \n",
       "1671666                     SUNDAY                        9   \n",
       "1671667                   SATURDAY                       12   \n",
       "1671668                   THURSDAY                       11   \n",
       "1671669                   SATURDAY                       13   \n",
       "1671670                     SUNDAY                       20   \n",
       "1671671                     SUNDAY                       19   \n",
       "1671672                     MONDAY                       16   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "0                                 Y                       1   \n",
       "1                                 Y                       1   \n",
       "2                                 Y                       1   \n",
       "3                                 Y                       1   \n",
       "4                                 Y                       1   \n",
       "5                                 Y                       1   \n",
       "6                                 Y                       1   \n",
       "7                                 Y                       1   \n",
       "8                                 Y                       1   \n",
       "9                                 Y                       1   \n",
       "10                                Y                       1   \n",
       "11                                Y                       1   \n",
       "12                                Y                       1   \n",
       "13                                Y                       1   \n",
       "14                                Y                       1   \n",
       "15                                Y                       1   \n",
       "16                                Y                       1   \n",
       "17                                Y                       1   \n",
       "18                                Y                       1   \n",
       "19                                Y                       1   \n",
       "20                                Y                       1   \n",
       "21                                Y                       1   \n",
       "22                                Y                       1   \n",
       "23                                Y                       1   \n",
       "24                                Y                       1   \n",
       "...                             ...                     ...   \n",
       "1671648                           Y                       1   \n",
       "1671649                           Y                       1   \n",
       "1671650                           Y                       1   \n",
       "1671651                           Y                       1   \n",
       "1671652                           Y                       1   \n",
       "1671653                           Y                       1   \n",
       "1671654                           Y                       1   \n",
       "1671655                           Y                       1   \n",
       "1671656                           Y                       1   \n",
       "1671657                           Y                       1   \n",
       "1671658                           Y                       1   \n",
       "1671659                           Y                       1   \n",
       "1671660                           Y                       1   \n",
       "1671661                           Y                       1   \n",
       "1671662                           Y                       1   \n",
       "1671663                           Y                       1   \n",
       "1671664                           Y                       1   \n",
       "1671665                           Y                       1   \n",
       "1671666                           Y                       1   \n",
       "1671667                           Y                       1   \n",
       "1671668                           Y                       1   \n",
       "1671669                           Y                       1   \n",
       "1671670                           Y                       1   \n",
       "1671671                           Y                       1   \n",
       "1671672                           Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "0                      NaN                    NaN                       NaN   \n",
       "1                 0.326727                    NaN                       NaN   \n",
       "2                      NaN                    NaN                       NaN   \n",
       "3                      NaN                    NaN                       NaN   \n",
       "4                      NaN                    NaN                       NaN   \n",
       "5                      NaN                    NaN                       NaN   \n",
       "6                      NaN                    NaN                       NaN   \n",
       "7                      NaN                    NaN                       NaN   \n",
       "8                      NaN                    NaN                       NaN   \n",
       "9                      NaN                    NaN                       NaN   \n",
       "10                     NaN                    NaN                       NaN   \n",
       "11                     NaN                    NaN                       NaN   \n",
       "12                     NaN                    NaN                       NaN   \n",
       "13                     NaN                    NaN                       NaN   \n",
       "14                     NaN                    NaN                       NaN   \n",
       "15                     NaN                    NaN                       NaN   \n",
       "16                0.000000                    NaN                       NaN   \n",
       "17                0.000000                    NaN                       NaN   \n",
       "18                0.101461                    NaN                       NaN   \n",
       "19                0.102879                    NaN                       NaN   \n",
       "20                0.100923                    NaN                       NaN   \n",
       "21                0.000000                    NaN                       NaN   \n",
       "22                     NaN                    NaN                       NaN   \n",
       "23                     NaN                    NaN                       NaN   \n",
       "24                     NaN                    NaN                       NaN   \n",
       "...                    ...                    ...                       ...   \n",
       "1671648                NaN                    NaN                       NaN   \n",
       "1671649                NaN                    NaN                       NaN   \n",
       "1671650           0.060027                    NaN                       NaN   \n",
       "1671651                NaN                    NaN                       NaN   \n",
       "1671652           0.000000               0.182818                  0.867336   \n",
       "1671653                NaN                    NaN                       NaN   \n",
       "1671654                NaN                    NaN                       NaN   \n",
       "1671655                NaN                    NaN                       NaN   \n",
       "1671656                NaN                    NaN                       NaN   \n",
       "1671657           0.000000                    NaN                       NaN   \n",
       "1671658                NaN                    NaN                       NaN   \n",
       "1671659                NaN                    NaN                       NaN   \n",
       "1671660                NaN                    NaN                       NaN   \n",
       "1671661                NaN                    NaN                       NaN   \n",
       "1671662                NaN                    NaN                       NaN   \n",
       "1671663                NaN                    NaN                       NaN   \n",
       "1671664                NaN                    NaN                       NaN   \n",
       "1671665                NaN                    NaN                       NaN   \n",
       "1671666           0.000000                    NaN                       NaN   \n",
       "1671667                NaN                    NaN                       NaN   \n",
       "1671668                NaN                    NaN                       NaN   \n",
       "1671669           0.000000                    NaN                       NaN   \n",
       "1671670           0.000000                    NaN                       NaN   \n",
       "1671671           0.000000                    NaN                       NaN   \n",
       "1671672           0.000000                    NaN                       NaN   \n",
       "\n",
       "        NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "0                          XNA             Approved          -4821   \n",
       "1                          XAP             Approved          -4996   \n",
       "2                          XNA             Approved          -1252   \n",
       "3                          XNA             Approved           -644   \n",
       "4                          XAP             Approved           -432   \n",
       "5                          XNA             Canceled           -432   \n",
       "6                          XNA             Approved           -432   \n",
       "7                          XNA             Canceled           -432   \n",
       "8                          XNA              Refused           -412   \n",
       "9                          XNA              Refused           -410   \n",
       "10                         XNA              Refused           -213   \n",
       "11                         XNA             Canceled           -213   \n",
       "12                         XNA              Refused           -181   \n",
       "13                         XNA             Canceled           -181   \n",
       "14                         XNA             Canceled           -943   \n",
       "15                         XNA             Approved           -943   \n",
       "16                         XAP              Refused           -798   \n",
       "17                         XAP             Approved          -1423   \n",
       "18                         XAP             Approved          -2778   \n",
       "19                         XAP             Approved          -1990   \n",
       "20                         XAP             Approved          -1248   \n",
       "21                         XAP             Approved           -566   \n",
       "22                         XNA             Approved           -424   \n",
       "23                         XAP             Canceled           -424   \n",
       "24                         XAP             Approved           -424   \n",
       "...                        ...                  ...            ...   \n",
       "1671648                    XNA             Canceled             -2   \n",
       "1671649                    XNA             Canceled             -2   \n",
       "1671650                    XAP             Approved             -2   \n",
       "1671651                    XNA             Canceled             -2   \n",
       "1671652                    XAP             Approved             -2   \n",
       "1671653                    XNA             Canceled             -2   \n",
       "1671654                    XNA             Canceled             -2   \n",
       "1671655                    XNA             Canceled             -2   \n",
       "1671656                    XAP             Canceled             -2   \n",
       "1671657                    XAP             Approved             -2   \n",
       "1671658                    XAP              Refused             -2   \n",
       "1671659                    XNA             Canceled             -2   \n",
       "1671660                    XNA             Canceled             -2   \n",
       "1671661                    XNA              Refused             -2   \n",
       "1671662                    XNA             Canceled             -2   \n",
       "1671663                    XNA             Canceled             -2   \n",
       "1671664                    XNA             Canceled             -2   \n",
       "1671665                    XNA             Canceled             -2   \n",
       "1671666                    XAP             Approved             -2   \n",
       "1671667                    XAP             Approved             -2   \n",
       "1671668                    XNA             Canceled             -2   \n",
       "1671669                    XAP             Approved             -2   \n",
       "1671670                    XAP             Approved             -2   \n",
       "1671671                    XAP             Approved             -1   \n",
       "1671672                    XAP             Approved             -1   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON  NAME_TYPE_SUITE  \\\n",
       "0        Cash through the bank                XAP    Unaccompanied   \n",
       "1        Cash through the bank                XAP              NaN   \n",
       "2        Cash through the bank                XAP          Other_A   \n",
       "3        Cash through the bank                XAP              NaN   \n",
       "4                          XNA                XAP    Unaccompanied   \n",
       "5                          XNA                XAP              NaN   \n",
       "6        Cash through the bank                XAP    Unaccompanied   \n",
       "7                          XNA                XAP              NaN   \n",
       "8                          XNA                 HC              NaN   \n",
       "9                          XNA                 HC              NaN   \n",
       "10       Cash through the bank                 HC    Unaccompanied   \n",
       "11                         XNA                XAP              NaN   \n",
       "12       Cash through the bank                 HC    Unaccompanied   \n",
       "13                         XNA                XAP              NaN   \n",
       "14                         XNA                XAP              NaN   \n",
       "15       Cash through the bank                XAP    Unaccompanied   \n",
       "16       Cash through the bank                 HC              NaN   \n",
       "17       Cash through the bank                XAP           Family   \n",
       "18       Cash through the bank                XAP           Family   \n",
       "19       Cash through the bank                XAP              NaN   \n",
       "20       Cash through the bank                XAP           Family   \n",
       "21       Cash through the bank                XAP              NaN   \n",
       "22       Cash through the bank                XAP    Unaccompanied   \n",
       "23                         XNA                XAP              NaN   \n",
       "24                         XNA                XAP    Unaccompanied   \n",
       "...                        ...                ...              ...   \n",
       "1671648                    XNA                XAP              NaN   \n",
       "1671649                    XNA                XAP              NaN   \n",
       "1671650  Cash through the bank                XAP    Unaccompanied   \n",
       "1671651                    XNA                XAP              NaN   \n",
       "1671652  Cash through the bank                XAP              NaN   \n",
       "1671653                    XNA                XAP              NaN   \n",
       "1671654                    XNA                XAP              NaN   \n",
       "1671655                    XNA                XAP              NaN   \n",
       "1671656                    XNA                XAP              NaN   \n",
       "1671657  Cash through the bank                XAP    Unaccompanied   \n",
       "1671658                    XNA                 HC           Family   \n",
       "1671659                    XNA                XAP              NaN   \n",
       "1671660                    XNA                XAP              NaN   \n",
       "1671661                    XNA                SCO  Spouse, partner   \n",
       "1671662                    XNA                XAP              NaN   \n",
       "1671663                    XNA                XAP              NaN   \n",
       "1671664                    XNA                XAP    Unaccompanied   \n",
       "1671665                    XNA                XAP    Unaccompanied   \n",
       "1671666                    XNA                XAP              NaN   \n",
       "1671667                    XNA                XAP    Unaccompanied   \n",
       "1671668                    XNA                XAP              NaN   \n",
       "1671669  Cash through the bank                XAP    Unaccompanied   \n",
       "1671670  Cash through the bank                XAP         Children   \n",
       "1671671  Cash through the bank                XAP           Family   \n",
       "1671672  Cash through the bank                XAP              NaN   \n",
       "\n",
       "        NAME_CLIENT_TYPE   NAME_GOODS_CATEGORY NAME_PORTFOLIO  \\\n",
       "0               Repeater                   XNA           Cash   \n",
       "1                    New             Furniture            POS   \n",
       "2              Refreshed                   XNA           Cash   \n",
       "3               Repeater                   XNA           Cash   \n",
       "4               Repeater                   XNA          Cards   \n",
       "5               Repeater                   XNA            XNA   \n",
       "6               Repeater                   XNA           Cash   \n",
       "7               Repeater                   XNA            XNA   \n",
       "8               Repeater                   XNA            XNA   \n",
       "9               Repeater                   XNA            XNA   \n",
       "10              Repeater                   XNA           Cash   \n",
       "11              Repeater                   XNA            XNA   \n",
       "12              Repeater                   XNA           Cash   \n",
       "13              Repeater                   XNA            XNA   \n",
       "14              Repeater                   XNA            XNA   \n",
       "15              Repeater                   XNA           Cash   \n",
       "16              Repeater                Mobile            POS   \n",
       "17                   New           Audio/Video            POS   \n",
       "18                   New  Consumer Electronics            POS   \n",
       "19              Repeater           Audio/Video            POS   \n",
       "20              Repeater                Mobile            POS   \n",
       "21              Repeater  Consumer Electronics            POS   \n",
       "22              Repeater                   XNA           Cash   \n",
       "23              Repeater                   XNA            XNA   \n",
       "24              Repeater                   XNA          Cards   \n",
       "...                  ...                   ...            ...   \n",
       "1671648         Repeater                   XNA            XNA   \n",
       "1671649         Repeater                   XNA            XNA   \n",
       "1671650        Refreshed             Furniture            POS   \n",
       "1671651         Repeater                   XNA            XNA   \n",
       "1671652         Repeater                Mobile            POS   \n",
       "1671653         Repeater                   XNA            XNA   \n",
       "1671654         Repeater                   XNA            XNA   \n",
       "1671655         Repeater                   XNA            XNA   \n",
       "1671656         Repeater                   XNA            XNA   \n",
       "1671657        Refreshed             Furniture            POS   \n",
       "1671658         Repeater                   XNA          Cards   \n",
       "1671659        Refreshed                   XNA            XNA   \n",
       "1671660         Repeater                   XNA            XNA   \n",
       "1671661         Repeater                   XNA           Cash   \n",
       "1671662         Repeater                   XNA            XNA   \n",
       "1671663         Repeater                   XNA            XNA   \n",
       "1671664         Repeater                   XNA           Cash   \n",
       "1671665         Repeater                   XNA           Cash   \n",
       "1671666         Repeater             Computers            POS   \n",
       "1671667         Repeater                   XNA          Cards   \n",
       "1671668         Repeater                   XNA            XNA   \n",
       "1671669         Repeater             Computers            POS   \n",
       "1671670         Repeater  Consumer Electronics            POS   \n",
       "1671671         Repeater             Furniture            POS   \n",
       "1671672         Repeater                Mobile            POS   \n",
       "\n",
       "        NAME_PRODUCT_TYPE             CHANNEL_TYPE  SELLERPLACE_AREA  \\\n",
       "0                  x-sell  Credit and cash offices                -1   \n",
       "1                     XNA                    Stone                30   \n",
       "2                  x-sell  Credit and cash offices                -1   \n",
       "3                  x-sell  Credit and cash offices                -1   \n",
       "4                 walk-in  Credit and cash offices                -1   \n",
       "5                     XNA  Credit and cash offices                -1   \n",
       "6                  x-sell  Credit and cash offices                -1   \n",
       "7                     XNA  Credit and cash offices                -1   \n",
       "8                     XNA  Credit and cash offices                -1   \n",
       "9                     XNA  Credit and cash offices                -1   \n",
       "10                 x-sell  Credit and cash offices                -1   \n",
       "11                    XNA  Credit and cash offices                -1   \n",
       "12                 x-sell  Credit and cash offices                -1   \n",
       "13                    XNA  Credit and cash offices                -1   \n",
       "14                    XNA  Credit and cash offices                -1   \n",
       "15                 x-sell  Credit and cash offices                -1   \n",
       "16                    XNA             Country-wide                35   \n",
       "17                    XNA             Country-wide              2100   \n",
       "18                    XNA             Country-wide                95   \n",
       "19                    XNA             Country-wide                95   \n",
       "20                    XNA             Country-wide                30   \n",
       "21                    XNA         Regional / Local               100   \n",
       "22                 x-sell  Credit and cash offices                -1   \n",
       "23                    XNA  Credit and cash offices                -1   \n",
       "24                 x-sell  Credit and cash offices                -1   \n",
       "...                   ...                      ...               ...   \n",
       "1671648               XNA           Contact center                -1   \n",
       "1671649               XNA  Credit and cash offices                -1   \n",
       "1671650               XNA             Country-wide               100   \n",
       "1671651               XNA  Credit and cash offices                -1   \n",
       "1671652               XNA             Country-wide                66   \n",
       "1671653               XNA  Credit and cash offices                -1   \n",
       "1671654               XNA           Contact center                -1   \n",
       "1671655               XNA  Credit and cash offices                -1   \n",
       "1671656               XNA           Contact center                -1   \n",
       "1671657               XNA         Regional / Local               100   \n",
       "1671658           walk-in             Country-wide               250   \n",
       "1671659               XNA  Credit and cash offices                 0   \n",
       "1671660               XNA  Credit and cash offices                -1   \n",
       "1671661            x-sell           Contact center                -1   \n",
       "1671662               XNA  Credit and cash offices                -1   \n",
       "1671663               XNA  Credit and cash offices                -1   \n",
       "1671664            x-sell           Contact center                -1   \n",
       "1671665            x-sell           Contact center                -1   \n",
       "1671666               XNA             Country-wide                26   \n",
       "1671667            x-sell  Credit and cash offices                -1   \n",
       "1671668               XNA  Credit and cash offices                -1   \n",
       "1671669               XNA             Country-wide              1200   \n",
       "1671670               XNA             Country-wide              6000   \n",
       "1671671               XNA             Country-wide                25   \n",
       "1671672               XNA             Country-wide                28   \n",
       "\n",
       "         NAME_SELLER_INDUSTRY  CNT_PAYMENT NAME_YIELD_GROUP  \\\n",
       "0                         XNA         12.0       low_normal   \n",
       "1                   Furniture          6.0           middle   \n",
       "2                         XNA         36.0           middle   \n",
       "3                         XNA         36.0           middle   \n",
       "4                         XNA          0.0              XNA   \n",
       "5                         XNA          NaN              XNA   \n",
       "6                         XNA         48.0       low_normal   \n",
       "7                         XNA          NaN              XNA   \n",
       "8                         XNA          NaN              XNA   \n",
       "9                         XNA          NaN              XNA   \n",
       "10                        XNA         60.0       low_normal   \n",
       "11                        XNA          NaN              XNA   \n",
       "12                        XNA         60.0       low_normal   \n",
       "13                        XNA          NaN              XNA   \n",
       "14                        XNA          NaN              XNA   \n",
       "15                        XNA         48.0       low_normal   \n",
       "16               Connectivity         10.0       low_normal   \n",
       "17       Consumer electronics         12.0           middle   \n",
       "18       Consumer electronics         10.0       low_normal   \n",
       "19       Consumer electronics          8.0           middle   \n",
       "20               Connectivity         10.0             high   \n",
       "21       Consumer electronics         12.0       low_normal   \n",
       "22                        XNA         24.0       low_normal   \n",
       "23                        XNA          NaN              XNA   \n",
       "24                        XNA          0.0              XNA   \n",
       "...                       ...          ...              ...   \n",
       "1671648                   XNA          NaN              XNA   \n",
       "1671649                   XNA          NaN              XNA   \n",
       "1671650             Furniture         30.0           middle   \n",
       "1671651                   XNA          NaN              XNA   \n",
       "1671652          Connectivity         12.0           middle   \n",
       "1671653                   XNA          NaN              XNA   \n",
       "1671654                   XNA          NaN              XNA   \n",
       "1671655                   XNA          NaN              XNA   \n",
       "1671656                   XNA          NaN              XNA   \n",
       "1671657             Furniture         10.0       low_action   \n",
       "1671658  Consumer electronics          0.0              XNA   \n",
       "1671659                   XNA          NaN              XNA   \n",
       "1671660                   XNA          NaN              XNA   \n",
       "1671661                   XNA         60.0       low_normal   \n",
       "1671662                   XNA          NaN              XNA   \n",
       "1671663                   XNA          NaN              XNA   \n",
       "1671664                   XNA         60.0       low_normal   \n",
       "1671665                   XNA         36.0           middle   \n",
       "1671666          Connectivity         12.0             high   \n",
       "1671667                   XNA          0.0              XNA   \n",
       "1671668                   XNA          NaN              XNA   \n",
       "1671669  Consumer electronics         24.0       low_action   \n",
       "1671670  Consumer electronics         24.0       low_action   \n",
       "1671671             Furniture          6.0       low_action   \n",
       "1671672          Connectivity         14.0             high   \n",
       "\n",
       "                    PRODUCT_COMBINATION  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "0                      Cash X-Sell: low            365243.0         -4791.0   \n",
       "1            POS industry with interest            365243.0         -4952.0   \n",
       "2                   Cash X-Sell: middle            365243.0         -1222.0   \n",
       "3                   Cash X-Sell: middle            365243.0          -614.0   \n",
       "4                           Card Street            365243.0        365243.0   \n",
       "5                                  Cash                 NaN             NaN   \n",
       "6                      Cash X-Sell: low            365243.0          -402.0   \n",
       "7                                  Cash                 NaN             NaN   \n",
       "8                                  Cash                 NaN             NaN   \n",
       "9                                  Cash                 NaN             NaN   \n",
       "10                     Cash X-Sell: low                 NaN             NaN   \n",
       "11                                 Cash                 NaN             NaN   \n",
       "12                     Cash X-Sell: low                 NaN             NaN   \n",
       "13                                 Cash                 NaN             NaN   \n",
       "14                                 Cash                 NaN             NaN   \n",
       "15                     Cash X-Sell: low            365243.0          -913.0   \n",
       "16          POS mobile without interest                 NaN             NaN   \n",
       "17          POS household with interest            365243.0         -1392.0   \n",
       "18       POS household without interest            365243.0         -2744.0   \n",
       "19          POS household with interest            365243.0         -1936.0   \n",
       "20             POS mobile with interest            365243.0         -1217.0   \n",
       "21          POS household with interest            365243.0          -535.0   \n",
       "22                     Cash X-Sell: low            365243.0          -394.0   \n",
       "23                          Card Street                 NaN             NaN   \n",
       "24                          Card X-Sell            365243.0        365243.0   \n",
       "...                                 ...                 ...             ...   \n",
       "1671648                            Cash                 NaN             NaN   \n",
       "1671649                            Cash                 NaN             NaN   \n",
       "1671650      POS industry with interest            365243.0        365243.0   \n",
       "1671651                            Cash                 NaN             NaN   \n",
       "1671652        POS mobile with interest            365243.0        365243.0   \n",
       "1671653                            Cash                 NaN             NaN   \n",
       "1671654                            Cash                 NaN             NaN   \n",
       "1671655                            Cash                 NaN             NaN   \n",
       "1671656                     Card Street                 NaN             NaN   \n",
       "1671657   POS industry without interest            365243.0        365243.0   \n",
       "1671658                     Card Street                 NaN             NaN   \n",
       "1671659                            Cash                 NaN             NaN   \n",
       "1671660                            Cash                 NaN             NaN   \n",
       "1671661                Cash X-Sell: low                 NaN             NaN   \n",
       "1671662                            Cash                 NaN             NaN   \n",
       "1671663                            Cash                 NaN             NaN   \n",
       "1671664                Cash X-Sell: low                 NaN             NaN   \n",
       "1671665             Cash X-Sell: middle                 NaN             NaN   \n",
       "1671666        POS mobile with interest                 NaN             NaN   \n",
       "1671667                     Card X-Sell                 NaN             NaN   \n",
       "1671668                            Cash                 NaN             NaN   \n",
       "1671669  POS household without interest            365243.0        365243.0   \n",
       "1671670  POS household without interest            365243.0        365243.0   \n",
       "1671671   POS industry without interest            365243.0        365243.0   \n",
       "1671672        POS mobile with interest            365243.0        365243.0   \n",
       "\n",
       "         DAYS_LAST_DUE_1ST_VERSION  DAYS_LAST_DUE  DAYS_TERMINATION  \\\n",
       "0                          -4461.0       365243.0          365243.0   \n",
       "1                          -4802.0        -4802.0           -4797.0   \n",
       "2                           -172.0        -1102.0           -1094.0   \n",
       "3                            436.0       365243.0          365243.0   \n",
       "4                         365243.0       365243.0          365243.0   \n",
       "5                              NaN            NaN               NaN   \n",
       "6                           1008.0       365243.0          365243.0   \n",
       "7                              NaN            NaN               NaN   \n",
       "8                              NaN            NaN               NaN   \n",
       "9                              NaN            NaN               NaN   \n",
       "10                             NaN            NaN               NaN   \n",
       "11                             NaN            NaN               NaN   \n",
       "12                             NaN            NaN               NaN   \n",
       "13                             NaN            NaN               NaN   \n",
       "14                             NaN            NaN               NaN   \n",
       "15                           497.0       365243.0          365243.0   \n",
       "16                             NaN            NaN               NaN   \n",
       "17                         -1062.0        -1062.0           -1056.0   \n",
       "18                         -2474.0        -2474.0           -2469.0   \n",
       "19                         -1726.0        -1726.0           -1720.0   \n",
       "20                          -947.0         -947.0            -935.0   \n",
       "21                          -205.0         -205.0            -201.0   \n",
       "22                           296.0       365243.0          365243.0   \n",
       "23                             NaN            NaN               NaN   \n",
       "24                        365243.0       365243.0          365243.0   \n",
       "...                            ...            ...               ...   \n",
       "1671648                        NaN            NaN               NaN   \n",
       "1671649                        NaN            NaN               NaN   \n",
       "1671650                      898.0       365243.0          365243.0   \n",
       "1671651                        NaN            NaN               NaN   \n",
       "1671652                      373.0       365243.0          365243.0   \n",
       "1671653                        NaN            NaN               NaN   \n",
       "1671654                        NaN            NaN               NaN   \n",
       "1671655                        NaN            NaN               NaN   \n",
       "1671656                        NaN            NaN               NaN   \n",
       "1671657                      298.0       365243.0          365243.0   \n",
       "1671658                        NaN            NaN               NaN   \n",
       "1671659                        NaN            NaN               NaN   \n",
       "1671660                        NaN            NaN               NaN   \n",
       "1671661                        NaN            NaN               NaN   \n",
       "1671662                        NaN            NaN               NaN   \n",
       "1671663                        NaN            NaN               NaN   \n",
       "1671664                        NaN            NaN               NaN   \n",
       "1671665                        NaN            NaN               NaN   \n",
       "1671666                        NaN            NaN               NaN   \n",
       "1671667                        NaN            NaN               NaN   \n",
       "1671668                        NaN            NaN               NaN   \n",
       "1671669                      718.0       365243.0          365243.0   \n",
       "1671670                      718.0       365243.0          365243.0   \n",
       "1671671                      179.0       365243.0          365243.0   \n",
       "1671672                      426.0       365243.0          365243.0   \n",
       "\n",
       "         NFLAG_INSURED_ON_APPROVAL  \n",
       "0                              1.0  \n",
       "1                              0.0  \n",
       "2                              1.0  \n",
       "3                              1.0  \n",
       "4                              0.0  \n",
       "5                              NaN  \n",
       "6                              1.0  \n",
       "7                              NaN  \n",
       "8                              NaN  \n",
       "9                              NaN  \n",
       "10                             NaN  \n",
       "11                             NaN  \n",
       "12                             NaN  \n",
       "13                             NaN  \n",
       "14                             NaN  \n",
       "15                             1.0  \n",
       "16                             NaN  \n",
       "17                             0.0  \n",
       "18                             1.0  \n",
       "19                             0.0  \n",
       "20                             0.0  \n",
       "21                             0.0  \n",
       "22                             1.0  \n",
       "23                             NaN  \n",
       "24                             0.0  \n",
       "...                            ...  \n",
       "1671648                        NaN  \n",
       "1671649                        NaN  \n",
       "1671650                        0.0  \n",
       "1671651                        NaN  \n",
       "1671652                        0.0  \n",
       "1671653                        NaN  \n",
       "1671654                        NaN  \n",
       "1671655                        NaN  \n",
       "1671656                        NaN  \n",
       "1671657                        1.0  \n",
       "1671658                        NaN  \n",
       "1671659                        NaN  \n",
       "1671660                        NaN  \n",
       "1671661                        NaN  \n",
       "1671662                        NaN  \n",
       "1671663                        NaN  \n",
       "1671664                        NaN  \n",
       "1671665                        NaN  \n",
       "1671666                        NaN  \n",
       "1671667                        NaN  \n",
       "1671668                        NaN  \n",
       "1671669                        0.0  \n",
       "1671670                        1.0  \n",
       "1671671                        0.0  \n",
       "1671672                        0.0  \n",
       "\n",
       "[1671673 rows x 37 columns]"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev_new2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:15:40.764358Z",
     "start_time": "2018-08-28T21:15:40.729706Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1696</th>\n",
       "      <td>1786922</td>\n",
       "      <td>181102</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>3268.485</td>\n",
       "      <td>15516.0</td>\n",
       "      <td>16285.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>15516.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2938</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>New</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>156</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>6.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-2907.0</td>\n",
       "      <td>-2757.0</td>\n",
       "      <td>-2757.0</td>\n",
       "      <td>-2746.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1697</th>\n",
       "      <td>1561592</td>\n",
       "      <td>181102</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7297.515</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>64278.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>58486.5</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1745</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>4000</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1714.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1384.0</td>\n",
       "      <td>-1332.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1698</th>\n",
       "      <td>1272122</td>\n",
       "      <td>181102</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>44509.500</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>19</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-237</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-207.0</td>\n",
       "      <td>123.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1699</th>\n",
       "      <td>1524441</td>\n",
       "      <td>181102</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-153</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "      SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  AMT_APPLICATION  \\\n",
       "1696     1786922      181102     Consumer loans     3268.485          15516.0   \n",
       "1697     1561592      181102     Consumer loans     7297.515          58486.5   \n",
       "1698     1272122      181102         Cash loans    44509.500         450000.0   \n",
       "1699     1524441      181102    Revolving loans          NaN              0.0   \n",
       "\n",
       "      AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "1696     16285.5               0.0          15516.0   \n",
       "1697     64278.0               0.0          58486.5   \n",
       "1698    450000.0               NaN         450000.0   \n",
       "1699         0.0               NaN              NaN   \n",
       "\n",
       "     WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "1696                   THURSDAY                       12   \n",
       "1697                     SUNDAY                       14   \n",
       "1698                     MONDAY                       19   \n",
       "1699                  WEDNESDAY                       14   \n",
       "\n",
       "     FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  RATE_DOWN_PAYMENT  \\\n",
       "1696                           Y                       1                0.0   \n",
       "1697                           Y                       1                0.0   \n",
       "1698                           Y                       1                NaN   \n",
       "1699                           Y                       1                NaN   \n",
       "\n",
       "      RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED NAME_CASH_LOAN_PURPOSE  \\\n",
       "1696                    NaN                       NaN                    XAP   \n",
       "1697                    NaN                       NaN                    XAP   \n",
       "1698                    NaN                       NaN                    XNA   \n",
       "1699                    NaN                       NaN                    XAP   \n",
       "\n",
       "     NAME_CONTRACT_STATUS  DAYS_DECISION      NAME_PAYMENT_TYPE  \\\n",
       "1696             Approved          -2938  Cash through the bank   \n",
       "1697             Approved          -1745  Cash through the bank   \n",
       "1698             Approved           -237                    XNA   \n",
       "1699             Canceled           -153                    XNA   \n",
       "\n",
       "     CODE_REJECT_REASON NAME_TYPE_SUITE NAME_CLIENT_TYPE  \\\n",
       "1696                XAP          Family              New   \n",
       "1697                XAP          Family        Refreshed   \n",
       "1698                XAP   Unaccompanied        Refreshed   \n",
       "1699                XAP             NaN         Repeater   \n",
       "\n",
       "       NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "1696                Mobile            POS               XNA   \n",
       "1697  Consumer Electronics            POS               XNA   \n",
       "1698                   XNA           Cash            x-sell   \n",
       "1699                   XNA            XNA               XNA   \n",
       "\n",
       "                 CHANNEL_TYPE  SELLERPLACE_AREA  NAME_SELLER_INDUSTRY  \\\n",
       "1696             Country-wide               156          Connectivity   \n",
       "1697             Country-wide              4000  Consumer electronics   \n",
       "1698           Contact center                -1                   XNA   \n",
       "1699  Credit and cash offices                -1                   XNA   \n",
       "\n",
       "      CNT_PAYMENT NAME_YIELD_GROUP          PRODUCT_COMBINATION  \\\n",
       "1696          6.0             high     POS mobile with interest   \n",
       "1697         12.0             high  POS household with interest   \n",
       "1698         12.0           middle          Cash X-Sell: middle   \n",
       "1699          NaN              XNA                  Card Street   \n",
       "\n",
       "      DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  DAYS_LAST_DUE_1ST_VERSION  \\\n",
       "1696            365243.0         -2907.0                    -2757.0   \n",
       "1697            365243.0         -1714.0                    -1384.0   \n",
       "1698            365243.0          -207.0                      123.0   \n",
       "1699                 NaN             NaN                        NaN   \n",
       "\n",
       "      DAYS_LAST_DUE  DAYS_TERMINATION  NFLAG_INSURED_ON_APPROVAL  \n",
       "1696        -2757.0           -2746.0                        1.0  \n",
       "1697        -1384.0           -1332.0                        0.0  \n",
       "1698       365243.0          365243.0                        0.0  \n",
       "1699            NaN               NaN                        NaN  "
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev_new2[prev_new2.SK_ID_CURR==181102]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:47.883058Z",
     "start_time": "2018-08-28T21:15:40.765742Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_new2.to_csv('../data/prev_forwards_v3.csv.gz', index=False, compression='gzip')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
